harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r394063 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java
Date Fri, 14 Apr 2006 11:24:33 GMT
Author: mloenko
Date: Fri Apr 14 04:24:29 2006
New Revision: 394063

URL: http://svn.apache.org/viewcvs?rev=394063&view=rev
Log:
fix for HARMONY-29
java.util.zip.ZipException while onening jar file on local machine

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java?rev=394063&r1=394062&r2=394063&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/JarURLConnection.java
Fri Apr 14 04:24:29 2006
@@ -35,6 +35,7 @@
 import java.util.zip.ZipFile;
 
 import org.apache.harmony.luni.util.Msg;
+import org.apache.harmony.luni.util.Util;
 import org.apache.harmony.kernel.vm.VM;
 
 /**
@@ -232,7 +233,7 @@
 			jar = (JarFile) entry.get();
 		if (jar == null && fileString != null) {
 			int flags = ZipFile.OPEN_READ + (temp ? ZipFile.OPEN_DELETE : 0);
-			jar = new JarFile(new File(fileString), true, flags);
+			jar = new JarFile(new File(Util.decode(fileString, true)), true, flags);
 			jarCache.put(key, new CacheEntry(jar, key, cacheQueue));
 		} else {
 			SecurityManager security = System.getSecurityManager();



Mime
View raw message