summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-05 18:55:27 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-05 18:55:27 +0000
commitf60cb7bce54fe110e0d9bf23ac1280f3964f73ad (patch)
tree186a00b222824b4ab23ac4cf2f97e4d3729e6192 /libjava/java
parent1a3ba46fb6f2412947a938cd3c3b9b6e3dd70282 (diff)
downloadppe42-gcc-f60cb7bce54fe110e0d9bf23ac1280f3964f73ad.tar.gz
ppe42-gcc-f60cb7bce54fe110e0d9bf23ac1280f3964f73ad.zip
* java/lang/natRuntime.cc (insertSystemProperties): Set
java.ext.dirs earlier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92964 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/natRuntime.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc
index 332f2c7b625..bf86522dd29 100644
--- a/libjava/java/lang/natRuntime.cc
+++ b/libjava/java/lang/natRuntime.cc
@@ -537,8 +537,13 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
SET ("user.region", "US");
}
+ // The java extensions directory.
+ SET ("java.ext.dirs", JAVA_EXT_DIRS);
+
// Set some properties according to whatever was compiled in with
- // `-D'.
+ // `-D'. Important: after this point, the only properties that
+ // should be set are those which either the user cannot meaningfully
+ // override, or which augment whatever value the user has provided.
for (int i = 0; _Jv_Compiler_Properties[i]; ++i)
{
const char *s, *p;
@@ -595,9 +600,6 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops)
// The name used to invoke this process (argv[0] in C).
SET ("gnu.gcj.progname", _Jv_GetSafeArg (0));
- // The java extensions directory.
- SET ("java.ext.dirs", JAVA_EXT_DIRS);
-
// Allow platform specific settings and overrides.
_Jv_platform_initProperties (newprops);
OpenPOWER on IntegriCloud