harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r779809 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
Date Fri, 29 May 2009 01:11:59 GMT
Author: ndbeyer
Date: Fri May 29 01:11:58 2009
New Revision: 779809

URL: http://svn.apache.org/viewvc?rev=779809&view=rev
Log:
Apply v3 path from HARMONY-6074 to correctly parse the Class-Path value in JAR manifests

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java?rev=779809&r1=779808&r2=779809&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
Fri May 29 01:11:58 2009
@@ -1184,11 +1184,9 @@
             String element = tokenizer.nextToken();
             if (!element.equals("")) { //$NON-NLS-1$
                 try {
-                    // Take absolute path case into consideration 
-                    URL elementURL = new URL(new URL(file), element);
-                    URL newURL = new URL(protocol, host, port, elementURL 
-                            + "!/"); //$NON-NLS-1$
-                    addedURLs.add(newURL);
+                    // Take absolute path case into consideration
+                    URL url = new URL(new URL(file), element);
+                    addedURLs.add(createSearchURL(url));
                 } catch (MalformedURLException e) {
                     // Nothing is added
                 }



Mime
View raw message