This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Fix class path buglet
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 15 Jun 2005 12:58:08 -0600
- Subject: Patch: FYI: Fix class path buglet
- Reply-to: tromey at redhat dot com
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())