aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diff options
context:
space:
mode:
authorAndrew John Hughes <ahughes@redhat.com>2010-12-03 20:19:12 +0000
committerAndrew John Hughes <ahughes@redhat.com>2010-12-03 20:19:12 +0000
commit0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (patch)
tree725e95de7981864e330850774c2a7d080881fb01 /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
parent8ddaf6d039146a442d35a7a31bfd48b061d456ff (diff)
Revert toURI().toURL() changes until we find a solution to the issues it raises:
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011270.html 2010-12-03 Andrew John Hughes <ahughes@redhat.com> * netx/net/sourceforge/jnlp/cache/CacheUtil.java, (getCachedResource(URL,Version,UpdatePolicy)): Revert change to use toURI() for now. See http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011270.html * netx/net/sourceforge/jnlp/cache/ResourceTracker.java, (getCacheURL(URL)): Likewise. * netx/net/sourceforge/jnlp/runtime/Boot.java, (getFile()): Use toURI.toURL() to avoid broken escaping. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeResources()): Likewise.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index e0d4d7a..aac70d0 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -469,7 +469,8 @@ public class JNLPClassLoader extends URLClassLoader {
continue; // JAR not found. Keep going.
}
- URL location = cachedFile.toURI().toURL();
+ // TODO: Should be toURI().toURL()
+ URL location = cachedFile.toURL();
SecurityDesc jarSecurity = file.getSecurity();
if (file instanceof PluginBridge) {
@@ -651,7 +652,8 @@ public class JNLPClassLoader extends URLClassLoader {
try {
URL location = jar.getLocation(); // non-cacheable, use source location
if (localFile != null) {
- location = localFile.toURI().toURL(); // cached file
+ // TODO: Should be toURI().toURL()
+ location = localFile.toURL(); // cached file
// This is really not the best way.. but we need some way for
// PluginAppletViewer::getCachedImageRef() to check if the image