-classpath switch patch

Per Bothner per@bothner.com
Fri Feb 22 21:49:00 GMT 2002


I took a look at jcf-path.c, and one thing led to another.
Here is my patch to fix path processing.  It supports
--CLASSPATH as a synonym for --classpath; --bootclasspath,
and --wholeclasspath in place of the current --CLASSPATH.
I also fixed a logic problem, where jcf_path_init was
called *after* option processing, not before.  Finally,
I changed "." to not be part of the "system" or built-in
class, but as an default for the non-builtin path, following
what JDK does.

One question I have is whether this is overkill.  Specifically,
is there any real reason to have --wholeclasspath?  I tend to
think not, unless there is some signicant difference between
--wholeclasspath PATH and --classpath PATH--bootclasspath "".
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: path.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020222/106bbfd9/attachment.ksh>


More information about the Java-patches mailing list