This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: fix for targets with no GCJ_PROPERTIES support



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"),


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]