Patch: FYI: sun.boot.class.path
Tom Tromey
tromey@redhat.com
Tue Feb 8 17:54:00 GMT 2005
I'm checking this in.
Tom Fitzsimmons pointed out that we couldn't override
sun.boot.class.path, something that java-gcj-compat wants to do.
Fixed as appended.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/natRuntime.cc (insertSystemProperties): Set
sun.boot.class.path earlier.
Index: java/lang/natRuntime.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natRuntime.cc,v
retrieving revision 1.44
diff -u -r1.44 natRuntime.cc
--- java/lang/natRuntime.cc 5 Jan 2005 18:55:27 -0000 1.44
+++ java/lang/natRuntime.cc 8 Feb 2005 17:36:54 -0000
@@ -1,6 +1,6 @@
// natRuntime.cc - Implementation of native side of Runtime class.
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation
This file is part of libgcj.
@@ -540,6 +540,9 @@
// The java extensions directory.
SET ("java.ext.dirs", JAVA_EXT_DIRS);
+ // The path to libgcj's boot classes
+ SET ("sun.boot.class.path", BOOT_CLASS_PATH);
+
// Set some properties according to whatever was compiled in with
// `-D'. Important: after this point, the only properties that
// should be set are those which either the user cannot meaningfully
@@ -594,9 +597,6 @@
sb->toString ());
}
- // The path to libgcj's boot classes
- SET ("sun.boot.class.path", BOOT_CLASS_PATH);
-
// The name used to invoke this process (argv[0] in C).
SET ("gnu.gcj.progname", _Jv_GetSafeArg (0));
More information about the Java-patches
mailing list