FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instea...
authorWarren Levy <warrenl@cygnus.com>
Thu, 10 Jun 1999 18:52:00 +0000 (18:52 +0000)
committerWarren Levy <warrenl@gcc.gnu.org>
Thu, 10 Jun 1999 18:52:00 +0000 (18:52 +0000)
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

libjava/ChangeLog
libjava/java/io/FileDescriptor.java
libjava/java/io/FileInputStream.java
libjava/java/text/Collator.java

index 73ff2a5feaf606d075c83570157e2feaa3c49d0a..8c473d0137631754a28e7a758fa102db7c3d8f91 100644 (file)
@@ -1,3 +1,13 @@
+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.
+
 1999-06-09  Bryce McKinlay <bryce@albatross.co.nz>
 
        * java/lang/Runtime.java (exec): Convert prog name and arguments
index 0782b0c8e958b2254ff1922810527c0d3de8199d..d345db29ad7ae8674a69b52b107817ab06088619 100644 (file)
@@ -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;
index 4f44dae03b7cf06a4fcc9bcf0e825873ba77b6a7..04ad6dd78dbbf6db65ad8bf79c36fed6de74bfa8 100644 (file)
@@ -23,7 +23,7 @@ public class FileInputStream extends InputStream
   /* Contains the file descriptor for referencing the actual file. */
   private FileDescriptor fd;
 
-  public FileInputStream(String name) throws FileNotFoundException, IOException
+  public FileInputStream(String name) throws FileNotFoundException
   {
     SecurityManager s = System.getSecurityManager();
     if (s != null)
@@ -31,7 +31,7 @@ public class FileInputStream extends InputStream
     fd = new FileDescriptor(name, FileDescriptor.READ);
   }
 
-  public FileInputStream(File file) throws FileNotFoundException, IOException
+  public FileInputStream(File file) throws FileNotFoundException
   {
     this(file.getPath());
   }
index ad7a5ca30c14c4435ff1eb51c3b9bde6ea093368..c323fc79a64c8dc924c98c0e4d8c1fc57f04f651 100644 (file)
@@ -27,7 +27,7 @@ import java.util.ResourceBundle;
 public abstract class Collator implements Cloneable, Serializable
 {
   public static final int NO_DECOMPOSITION = 0;
-  public static final int CANONCIAL_DECOMPOSITION = 1;
+  public static final int CANONICAL_DECOMPOSITION = 1;
   public static final int FULL_DECOMPOSITION = 2;
 
   public static final int PRIMARY = 0;
@@ -38,7 +38,7 @@ public abstract class Collator implements Cloneable, Serializable
   protected Collator ()
   {
     strength = TERTIARY;
-    decmp = CANONCIAL_DECOMPOSITION;
+    decmp = CANONICAL_DECOMPOSITION;
   }
 
   public abstract int compare (String source, String target);
@@ -107,7 +107,7 @@ public abstract class Collator implements Cloneable, Serializable
   public synchronized void setDecomposition (int mode)
   {
     if (mode != NO_DECOMPOSITION
-       && mode != CANONCIAL_DECOMPOSITION
+       && mode != CANONICAL_DECOMPOSITION
        && mode != FULL_DECOMPOSITION)
       throw new IllegalArgumentException ();
     decmp = mode;