diff options
author | Omair Majid <[email protected]> | 2011-09-28 18:17:13 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-09-28 18:17:13 -0400 |
commit | e977e8ecedf5fdf06b4f04695d8c31290bfe2022 (patch) | |
tree | cdab9b5906e91f146548d89b676aa9ac5ee0afcc /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | |
parent | 7a339780a1b3af621e2887c8dc41d86273d62320 (diff) |
Make getMainClass()'s return value consistent for AppletDesc and ApplicationDesc
2011-09-28 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/AppletDesc.java (getMainClass): Clarify the
return value in javadoc.
* netx/net/sourceforge/jnlp/Launcher.java
(createApplet, createAppletObject): Do not replace '/' with '.'.
* netx/net/sourceforge/jnlp/PluginBridge.java (PluginBridge): Ensure that
the class name is in the dot-separated from.
* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
(checkForMain): Ensure that the name is an exact match.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 03e3763..412fb21 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -580,6 +580,7 @@ public class JNLPClassLoader extends URLClassLoader { mainClass = ad.getMainClass(); } else return; + String desiredJarEntryName = mainClass + ".class"; for (int i = 0; i < jars.size(); i++) { @@ -599,9 +600,7 @@ public class JNLPClassLoader extends URLClassLoader { while (entries.hasMoreElements()) { je = entries.nextElement(); String jeName = je.getName().replaceAll("/", "."); - - if (!jeName.startsWith(mainClass + "$Inner") - && (jeName.startsWith(mainClass) && jeName.endsWith(".class"))) { + if (jeName.equals(desiredJarEntryName)) { foundMainJar = true; verifySignedJNLP(jars.get(i), jarFile); break; |