From 71bd5ab0a09c7f91645e09eb9c6dbd89c755647b Mon Sep 17 00:00:00 2001 From: Danesh Dadachanji Date: Wed, 15 Aug 2012 09:39:53 -0400 Subject: Restrict manifest classpath searching for JNLPs. --- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java') 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())); } -- cgit v1.2.3