diff options
author | Andrew John Hughes <[email protected]> | 2010-12-03 20:19:12 +0000 |
---|---|---|
committer | Andrew John Hughes <[email protected]> | 2010-12-03 20:19:12 +0000 |
commit | 0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (patch) | |
tree | 725e95de7981864e330850774c2a7d080881fb01 /netx/net/sourceforge/jnlp/cache | |
parent | 8ddaf6d039146a442d35a7a31bfd48b061d456ff (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 <[email protected]>
* 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/cache')
-rw-r--r-- | netx/net/sourceforge/jnlp/cache/CacheUtil.java | 3 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/cache/ResourceTracker.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/cache/CacheUtil.java b/netx/net/sourceforge/jnlp/cache/CacheUtil.java index c5bb372..04b5adc 100644 --- a/netx/net/sourceforge/jnlp/cache/CacheUtil.java +++ b/netx/net/sourceforge/jnlp/cache/CacheUtil.java @@ -80,7 +80,8 @@ public class CacheUtil { rt.addResource(location, version, policy); try { File f = rt.getCacheFile(location); - return f.toURI().toURL(); + // TODO: Should be toURI().toURL() + return f.toURL(); } catch (MalformedURLException ex) { return location; diff --git a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java index 1e74f17..e4d85b0 100644 --- a/netx/net/sourceforge/jnlp/cache/ResourceTracker.java +++ b/netx/net/sourceforge/jnlp/cache/ResourceTracker.java @@ -331,7 +331,8 @@ public class ResourceTracker { try { File f = getCacheFile(location); if (f != null) - return f.toURI().toURL(); + // TODO: Should be toURI().toURL() + return f.toURL(); } catch (MalformedURLException ex) { if (JNLPRuntime.isDebug()) |