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]
Other format: [Raw text]

Re: Patch: RFA for 4.0: use system class loader


This should go into 4.0, right? It's not there yet.

Mark Wielaard wrote:
 > 2005-04-15  Mark Wielaard  <mark@klomp.org>

* java/lang/natRuntime.cc (insertSystemProperties): Set java.class.path to "." if CLASSPATH not given or empty.

Do you think we should handle the case were CLASSPATH is set to the
empty string in this way?

Cheers,

Mark

diff -u -r1.47.2.6 natRuntime.cc
--- java/lang/natRuntime.cc     13 Apr 2005 21:36:55 -0000      1.47.2.6
+++ java/lang/natRuntime.cc     14 Apr 2005 23:16:35 -0000
@@ -624,8 +624,10 @@
   if (!path)
     {
       char *classpath = getenv("CLASSPATH");
-      if (classpath)
+      if (classpath && classpath[0] != 0)
        SET ("java.class.path", classpath);
+      else
+       SET ("java.class.path", ".");
     }
 }



--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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