diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-07-27 18:42:38 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-07-27 19:42:38 +0100 |
commit | d078f7c01015454aeb28818c67a69198659ecf85 (patch) | |
tree | ce432aa4ad7d926954f645729fff5d4d66a7e00c /libjava/java/io | |
parent | b3fade83995e0584a520c43c423fe866bcea8908 (diff) | |
download | gcc-d078f7c01015454aeb28818c67a69198659ecf85.zip gcc-d078f7c01015454aeb28818c67a69198659ecf85.tar.gz gcc-d078f7c01015454aeb28818c67a69198659ecf85.tar.bz2 |
File.java (toURI): Throw RuntimeException, not InternalError.
2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
* java/io/File.java (toURI): Throw RuntimeException, not
InternalError.
* java/lang/Runtime.java (exit): Qualify static sleep() call with
class name, not instance.
From-SVN: r85227
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/File.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 47f18b5..1d930d5 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -893,8 +893,7 @@ public class File implements Serializable, Comparable catch (URISyntaxException use) { // Can't happen. - throw (InternalError) new InternalError("Unconvertible file: " - + this).initCause(use); + throw new RuntimeException(use); } } |