Commit d078f7c0 by Bryce McKinlay Committed by Bryce McKinlay

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
parent b3fade83
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.
2004-07-24 Bryce McKinlay <mckinlay@redhat.com> 2004-07-24 Bryce McKinlay <mckinlay@redhat.com>
* Makefile.am: Add gnu/java/security/action/GetPropertyAction.java * Makefile.am: Add gnu/java/security/action/GetPropertyAction.java
......
...@@ -893,8 +893,7 @@ public class File implements Serializable, Comparable ...@@ -893,8 +893,7 @@ public class File implements Serializable, Comparable
catch (URISyntaxException use) catch (URISyntaxException use)
{ {
// Can't happen. // Can't happen.
throw (InternalError) new InternalError("Unconvertible file: " throw new RuntimeException(use);
+ this).initCause(use);
} }
} }
......
...@@ -238,7 +238,7 @@ public class Runtime ...@@ -238,7 +238,7 @@ public class Runtime
} }
try try
{ {
exitSequence.sleep(1); // Give other threads a chance. Thread.sleep(1); // Give other threads a chance.
} }
catch (InterruptedException e) catch (InterruptedException e)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment