Patch: RFA for 4.0: use system class loader
Per Bothner
per@bothner.com
Sat Apr 16 19:31:00 GMT 2005
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/
More information about the Java-patches
mailing list