aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
diff options
context:
space:
mode:
authorDanesh Dadachanji <[email protected]>2012-08-15 09:39:53 -0400
committerDanesh Dadachanji <[email protected]>2012-08-15 09:39:53 -0400
commit71bd5ab0a09c7f91645e09eb9c6dbd89c755647b (patch)
tree7a23b7db96366a6fb8181e00b01d9cbcfc0f231e /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
parentabf4ecb7073d3e44ce1340ca3bce6bd82fbd4f7c (diff)
Restrict manifest classpath searching for JNLPs.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index c0c3762..bb115aa 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -1286,7 +1286,11 @@ public class JNLPClassLoader extends URLClassLoader {
JarFile jarFile = new JarFile(localFile.getAbsolutePath());
Manifest mf = jarFile.getManifest();
- if (file instanceof PluginBridge) {
+ // Only check classpath if this is the plugin and there is no jnlp_href usage.
+ // Note that this is different from proprietary plugin behaviour.
+ // If jnlp_href is used, the app should be treated similarly to when
+ // it is run from javaws as a webstart.
+ if (file instanceof PluginBridge && !((PluginBridge) file).useJNLPHref()) {
classpaths.addAll(getClassPathsFromManifest(mf, jar.getLocation().getPath()));
}