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
This commit is contained in:
Bryce McKinlay 2004-07-27 18:42:38 +00:00 committed by Bryce McKinlay
parent b3fade8399
commit d078f7c010
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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>
* Makefile.am: Add gnu/java/security/action/GetPropertyAction.java

View File

@ -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);
}
}

View File

@ -238,7 +238,7 @@ public class Runtime
}
try
{
exitSequence.sleep(1); // Give other threads a chance.
Thread.sleep(1); // Give other threads a chance.
}
catch (InterruptedException e)
{