aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@gcc.gnu.org>2001-07-12 15:37:43 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-07-12 15:37:43 +0000
commita3e5ae6dd8577e990a5bd93dc8202d341c0b29f0 (patch)
treefde1b14cdc1bebc875a5166d818455685d85b423
parentc35e85f9783adaed94192057083315cffc34dc09 (diff)
downloadgcc-a3e5ae6dd8577e990a5bd93dc8202d341c0b29f0.zip
gcc-a3e5ae6dd8577e990a5bd93dc8202d341c0b29f0.tar.gz
gcc-a3e5ae6dd8577e990a5bd93dc8202d341c0b29f0.tar.bz2
Report from Henner Zeller:
* java/io/FileOutputStream.java (FileOutputStream): Throw FileNotFoundException, not IOException. From-SVN: r43966
-rw-r--r--libjava/ChangeLog8
-rw-r--r--libjava/java/io/FileOutputStream.java13
2 files changed, 15 insertions, 6 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index a28900b..5a815b9c 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-12 Tom Tromey <tromey@redhat.com>
+
+ Report from Henner Zeller:
+ * java/io/FileOutputStream.java (FileOutputStream): Throw
+ FileNotFoundException, not IOException.
+
2001-07-10 Anthony Green <green@redhat.com>
* Makefile.in: Rebuilt.
@@ -47,7 +53,7 @@
* Makefile.in: Regenerate.
* java/lang/ThreadLocal.java: Initial import.
-2001-07-07 Jeff Sturm <jsturm@one-point.com
+2001-07-07 Jeff Sturm <jsturm@one-point.com>
* Makefile.am (libgcj.jar): Don't recursively make
built_java_source_files. Avoid long command lines.
diff --git a/libjava/java/io/FileOutputStream.java b/libjava/java/io/FileOutputStream.java
index 57af576..b592299 100644
--- a/libjava/java/io/FileOutputStream.java
+++ b/libjava/java/io/FileOutputStream.java
@@ -1,6 +1,6 @@
// FileOutputStream.java - Write bytes to a file.
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
This file is part of libgcj.
@@ -23,7 +23,7 @@ package java.io;
public class FileOutputStream extends OutputStream
{
public FileOutputStream (String path, boolean append)
- throws SecurityException, IOException
+ throws SecurityException, FileNotFoundException
{
SecurityManager s = System.getSecurityManager();
if (s != null)
@@ -33,17 +33,20 @@ public class FileOutputStream extends OutputStream
: FileDescriptor.WRITE));
}
- public FileOutputStream (String path) throws SecurityException, IOException
+ public FileOutputStream (String path)
+ throws SecurityException, FileNotFoundException
{
this (path, false);
}
- public FileOutputStream (File file) throws SecurityException, IOException
+ public FileOutputStream (File file)
+ throws SecurityException, FileNotFoundException
{
this (file.getPath(), false);
}
- public FileOutputStream (FileDescriptor fdObj) throws SecurityException
+ public FileOutputStream (FileDescriptor fdObj)
+ throws SecurityException
{
SecurityManager s = System.getSecurityManager();
if (s != null)