diff options
author | Omair Majid <[email protected]> | 2010-10-20 10:04:25 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2010-10-20 10:04:25 -0400 |
commit | afb34f78256f69f516fc78d0ffd90eb2dedc572a (patch) | |
tree | 22149920710af7a2392849c42da2483936cef6f4 | |
parent | 3ebd3fb0788bb8433902274370de97254b17e3d8 (diff) |
do not encode cache file url when adding it to jarLocationSecurityMap
2010-10-20 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(initializeResources): Do not perform url encoding on the file url. Stay
consistent with the unencoded urls used in getPermissions.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,12 @@ 2010-10-20 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java + (initializeResources): Do not perform url encoding on the file url. Stay + consistent with the unencoded urls used in getPermissions. + +2010-10-20 Omair Majid <[email protected]> + + * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (JNLPClassLoader): Call installShutdownHooks. (installShutdownHooks): New method. Installs a shutdown hook to recursively delete the contents of nativeDir. diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 03c44a1..9ce6f46 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -460,7 +460,7 @@ public class JNLPClassLoader extends URLClassLoader { for (JARDesc jarDesc: file.getResources().getJARs()) { try { - URL location = tracker.getCacheFile(jarDesc.getLocation()).toURI().toURL(); + URL location = tracker.getCacheFile(jarDesc.getLocation()).toURL(); SecurityDesc jarSecurity = file.getSecurity(); if (file instanceof PluginBridge) { |