aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/PluginBridge.java
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-09-28 18:17:13 -0400
committerOmair Majid <[email protected]>2011-09-28 18:17:13 -0400
commite977e8ecedf5fdf06b4f04695d8c31290bfe2022 (patch)
treecdab9b5906e91f146548d89b676aa9ac5ee0afcc /netx/net/sourceforge/jnlp/PluginBridge.java
parent7a339780a1b3af621e2887c8dc41d86273d62320 (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/PluginBridge.java')
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java
index a54858a..ac703b3 100644
--- a/netx/net/sourceforge/jnlp/PluginBridge.java
+++ b/netx/net/sourceforge/jnlp/PluginBridge.java
@@ -133,7 +133,9 @@ public class PluginBridge extends JNLPFile {
if (main.endsWith(".class"))
main = main.substring(0, main.length() - 6);
- launchType = new AppletDesc(name, main, documentBase, width,
+ // the class name should be of the form foo.bar.Baz not foo/bar/Baz
+ String mainClass = main.replace('/', '.');
+ launchType = new AppletDesc(name, mainClass, documentBase, width,
height, atts);
if (main.endsWith(".class")) //single class file only