Patch: FYI: Fix class path buglet
Tom Tromey
tromey@redhat.com
Wed Jun 15 20:07:00 GMT 2005
I'm checking this in on the trunk. I'll put it in 4.0 once the
branch is open again.
Before this patch we would incorrectly add '.' to the class path in
some situations.
Note that we still technically mishandle the case where CLASSPATH=:
In this case we only add '.' to the path once, instead of twice.
I don't think this is important.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* gnu/gcj/runtime/SystemClassLoader.java (init): Clear
last_was_sep in loop.
Index: gnu/gcj/runtime/SystemClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/gcj/runtime/SystemClassLoader.java,v
retrieving revision 1.2
diff -u -r1.2 SystemClassLoader.java
--- gnu/gcj/runtime/SystemClassLoader.java 13 May 2005 20:20:56 -0000 1.2
+++ gnu/gcj/runtime/SystemClassLoader.java 15 Jun 2005 18:56:38 -0000
@@ -52,6 +52,7 @@
continue;
}
+ last_was_sep = false;
File path = new File(e);
// Ignore invalid paths.
if (!path.exists())
More information about the Java-patches
mailing list