summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorBrian Jones <cbj@gnu.org>2001-07-26 22:56:10 +0000
committerBrian Jones <cbj@gnu.org>2001-07-26 22:56:10 +0000
commit9e45d81a2b498237b7ec90cee574c58b06a746a3 (patch)
tree103b0a231a88ddfb6612629b750cc6aeccc79c88 /vm
parentc49e787973f035af263965743a1482b3d7cb82be (diff)
downloadclasspath-9e45d81a2b498237b7ec90cee574c58b06a746a3.tar.gz
* vm/reference/java/lang/Runtime.java (Runtime): use
File.pathSeparatorChar instead of ':' * vm/reference/java/lang/Runtime.java (Runtime): deal with null library path * vm/reference/java/lang/Class.java: documentation fix * native/jni/awt/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c (Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_setValues): changed argument type from int to jint * gnu/java/locale/LocaleInformation_en.java: sentence_breaks updated * gnu/java/locale/LocaleInformation_nl.java: sentence_breaks updated * gnu/java/locale/LocaleInformation_de.java: Added word_breaks, sentence_breaks, and line_breaks.
Diffstat (limited to 'vm')
-rwxr-xr-xvm/reference/java/lang/Class.java4
-rwxr-xr-xvm/reference/java/lang/Runtime.java9
2 files changed, 10 insertions, 3 deletions
diff --git a/vm/reference/java/lang/Class.java b/vm/reference/java/lang/Class.java
index 1a724dec2..a6311ad52 100755
--- a/vm/reference/java/lang/Class.java
+++ b/vm/reference/java/lang/Class.java
@@ -32,8 +32,8 @@ import gnu.java.lang.*;
* Arrays with identical type and number of dimensions
* share the same class (and null "system" ClassLoader,
* incidentally). The name of an array class is
- * <CODE>[&lt;type name&gt;</CODE> ... for example,
- * String[]'s class is <CODE>[java.lang.String</CODE>.
+ * <CODE>[&lt;signature format&gt;;</CODE> ... for example,
+ * String[]'s class is <CODE>[Ljava.lang.String;</CODE>.
* boolean, byte, short, char, int, long, float and double
* have the "type name" of Z,B,S,C,I,J,F,D for the
* purposes of array classes. If it's a multidimensioned
diff --git a/vm/reference/java/lang/Runtime.java b/vm/reference/java/lang/Runtime.java
index 94cc97164..bbfbcf1af 100755
--- a/vm/reference/java/lang/Runtime.java
+++ b/vm/reference/java/lang/Runtime.java
@@ -43,6 +43,12 @@ public class Runtime {
private Runtime() {
String path = getLibraryPath();
+ if (path == null)
+ {
+ libpath = new String[0];
+ }
+ else
+ {
int numColons = 0;
int pathLength = path.length();
for(int i=0;i<pathLength;i++) {
@@ -54,7 +60,7 @@ public class Runtime {
int current = 0;
int libpathIndex = 0;
while(true) {
- int next = path.indexOf(':',current);
+ int next = path.indexOf(File.pathSeparatorChar,current);
if(next == -1) {
libpath[libpathIndex] = path.substring(current);
break;
@@ -63,6 +69,7 @@ public class Runtime {
libpathIndex++;
current = next+1;
}
+ }
}
/** Get the current Runtime object for this JVM.