This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: fix for targets with no GCJ_PROPERTIES support
- To: java-patches at sources dot redhat dot com
- Subject: Patch: fix for targets with no GCJ_PROPERTIES support
- From: Anthony Green <green at redhat dot com>
- Date: Sat, 27 Oct 2001 19:41:13 -0700
- Reply-to: green at cygnus dot com
We were missing this protection for platforms where
DISABLE_GETENV_PROPERTIES is defined.
Ok?
Wed Oct 24 07:29:30 2001 Anthony Green <green@redhat.com>
* java/lang/natSystem.cc (init_properties): Don't refer to
_Jv_Environment_Properties when this feature is not available.
Index: java/lang/natSystem.cc
===================================================================
RCS file: /cvs/cvsfiles/devo/libjava/java/lang/natSystem.cc,v
retrieving revision 1.46
diff -u -p -r1.46 natSystem.cc
--- natSystem.cc 2001/09/13 13:07:13 1.46
+++ natSystem.cc 2001/10/28 02:37:56
@@ -462,6 +463,7 @@ java::lang::System::init_properties (voi
newprops->put (name, val);
}
+#ifndef DISABLE_GETENV_PROPERTIES
// Set the system properties from the user's environment.
if (_Jv_Environment_Properties)
{
@@ -474,6 +476,7 @@ java::lang::System::init_properties (voi
i++;
}
}
+#endif
if (_Jv_Jar_Class_Path)
newprops->put(JvNewStringLatin1 ("java.class.path"),