diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 15:37:43 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-12 15:37:43 +0000 |
| commit | f8597b54b8a9a92dffc91341f7626e7238e969c7 (patch) | |
| tree | fde1b14cdc1bebc875a5166d818455685d85b423 /libjava/java | |
| parent | ee604194d1f3a85702060c4aeb01b22511eb4f8b (diff) | |
| download | ppe42-gcc-f8597b54b8a9a92dffc91341f7626e7238e969c7.tar.gz ppe42-gcc-f8597b54b8a9a92dffc91341f7626e7238e969c7.zip | |
Report from Henner Zeller:
* java/io/FileOutputStream.java (FileOutputStream): Throw
FileNotFoundException, not IOException.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
| -rw-r--r-- | libjava/java/io/FileOutputStream.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libjava/java/io/FileOutputStream.java b/libjava/java/io/FileOutputStream.java index 57af576f89c..b592299a355 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) |

