summaryrefslogtreecommitdiff
path: root/libjava/java/io/FileDescriptor.java
diff options
context:
space:
mode:
authorWarren Levy <warrenl@cygnus.com>1999-06-10 18:52:00 +0000
committerWarren Levy <warrenl@gcc.gnu.org>1999-06-10 18:52:00 +0000
commita21f23fc67acde9dc7708a0ac2ed06cbbdedf9cf (patch)
treec3f6a815904d87ad6cc38aa24b6d47c9dca2067c /libjava/java/io/FileDescriptor.java
parent9a726fc16f70ba230cee347c2d40223b74f612fc (diff)
downloadgcc-a21f23fc67acde9dc7708a0ac2ed06cbbdedf9cf.tar.gz
FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException.
1999-06-10 Warren Levy <warrenl@cygnus.com> * java/io/FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException. (open): ditto. * java/io/FileInputStream.java (FileInputStream): Doesn't throw IOException. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo in static field name. From-SVN: r27473
Diffstat (limited to 'libjava/java/io/FileDescriptor.java')
-rw-r--r--libjava/java/io/FileDescriptor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java
index 0782b0c8e95..d345db29ad7 100644
--- a/libjava/java/io/FileDescriptor.java
+++ b/libjava/java/io/FileDescriptor.java
@@ -42,7 +42,7 @@ public final class FileDescriptor
static final int CUR = 1;
// Open a file. MODE is a combination of the above mode flags.
- FileDescriptor (String path, int mode) throws IOException
+ FileDescriptor (String path, int mode) throws FileNotFoundException
{
fd = open (path, mode);
}
@@ -52,7 +52,7 @@ public final class FileDescriptor
fd = -1;
}
- native int open (String path, int mode) throws IOException;
+ native int open (String path, int mode) throws FileNotFoundException;
native void write (int b) throws IOException;
native void write (byte[] b, int offset, int len)
throws IOException, NullPointerException, IndexOutOfBoundsException;