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]

Use space as path separator for Manifest Class-Path attributes


Hi,

While merging and testing URLClassLoader in GNU Classpath I noticed that
all all MANIFEST.MF files I could find use a space " " as path
separator. This is also what the JCLv1 supplement says
should be used.

2005-02-15  Mark Wielaard  <mark@klomp.org>

       * java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Just use
       space for parsing CLASS_PATH attribute.

This makes gij -jar work for jar files that contain a CLASS_PATH
attribute with more then one element.

OK to commit?

Mark
Index: java/net/URLClassLoader.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URLClassLoader.java,v
retrieving revision 1.23
diff -u -b -r1.23 URLClassLoader.java
--- java/net/URLClassLoader.java	12 Feb 2005 13:51:11 -0000	1.23
+++ java/net/URLClassLoader.java	15 Feb 2005 19:52:52 -0000
@@ -364,11 +341,7 @@
 		{
 		  this.classPath = new Vector();
 
-		  StringTokenizer st
-		    = new StringTokenizer 
-		      (classPathString,
-		       System.getProperty ("path.separator", ":"));
-      
+	      StringTokenizer st = new StringTokenizer(classPathString, " ");
 		  while (st.hasMoreElements ()) 
 		    {  
 		      String e = st.nextToken ();

Attachment: signature.asc
Description: This is a digitally signed message part


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