From d078f7c01015454aeb28818c67a69198659ecf85 Mon Sep 17 00:00:00 2001
From: Bryce McKinlay <mckinlay@redhat.com>
Date: Tue, 27 Jul 2004 18:42:38 +0000
Subject: [PATCH] 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
---
 libjava/ChangeLog              | 7 +++++++
 libjava/java/io/File.java      | 3 +--
 libjava/java/lang/Runtime.java | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index ba7bd1d1872c..ce46e07bdf6c 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java
index 47f18b533b3d..1d930d59b84d 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);
       }
   }
 
diff --git a/libjava/java/lang/Runtime.java b/libjava/java/lang/Runtime.java
index e14cd192f402..749aa36ac032 100644
--- a/libjava/java/lang/Runtime.java
+++ b/libjava/java/lang/Runtime.java
@@ -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)
                   {
-- 
GitLab