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]

Patch: FYI: Fix class path buglet


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())


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