diff options
author | Denis Lila <[email protected]> | 2011-03-04 17:45:57 -0500 |
---|---|---|
committer | Denis Lila <[email protected]> | 2011-03-04 17:45:57 -0500 |
commit | ec6d0386718421e0c86a1c49feb3a227452da24b (patch) | |
tree | e448491c4d5563f8e70a0efe23042e52bd706164 /plugin/icedteanp/java | |
parent | 43cf2ac30fcb4d562d8fbed3ea87743107e8bf92 (diff) | |
parent | 0b38becc8ddeb3026d5fa0ca89713cb3e38ac430 (diff) |
merge
Diffstat (limited to 'plugin/icedteanp/java')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginAppletViewer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java index 38b8b96..bd3637f 100644 --- a/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java +++ b/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java @@ -1646,7 +1646,14 @@ public class PluginAppletViewer extends XEmbeddedFrame { public void run() { - ThreadGroup tg = ((JNLPClassLoader) p.applet.getClass().getClassLoader()).getApplication().getThreadGroup(); + ClassLoader cl = p.applet.getClass().getClassLoader(); + + // Since we want to deal with JNLPClassLoader, extract it if this + // is a codebase loader + if (cl instanceof JNLPClassLoader.CodeBaseClassLoader) + cl = ((JNLPClassLoader.CodeBaseClassLoader) cl).getParentJNLPClassLoader(); + + ThreadGroup tg = ((JNLPClassLoader) cl).getApplication().getThreadGroup(); appletShutdown(p); appletPanels.removeElement(p); |