patch to java.io.FileOutputStream

majiro at distribution.co.jp majiro at distribution.co.jp
Thu Oct 28 08:14:04 PDT 1999


Hello,

I show a short patch to FileOutputStream.java.

According to JLS, the constructers of FileOutputStream issue
FileNotFoundException rather than IOException.

Also, I'm afraid to less null-check for FileDescriptor and
SecurityManager... But I don't add any modifying about this probrem
yet.

Thanks,
Jiro

Index: FileOutputStream.java
===================================================================
RCS file: /home/cvspublic/kaffe/libraries/javalib/java/io/FileOutputStream.java,v
retrieving revision 1.4
diff -r1.4 FileOutputStream.java
24c24
< public FileOutputStream(File file) throws IOException
---
> public FileOutputStream(File file) throws FileNotFoundException
30c30
< 	{
---
> {
35c35
< public FileOutputStream(String name) throws IOException
---
> public FileOutputStream(String name) throws FileNotFoundException
40c40
< public FileOutputStream(String name, boolean append) throws IOException
---
> public FileOutputStream(String name, boolean append) throws FileNotFoundException


More information about the kaffe mailing list