diff options
author | Kenneth Russel <[email protected]> | 2008-10-21 21:33:50 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-10-21 21:33:50 +0000 |
commit | f919ae92dcec1fb4eb7f43b8ca4cc0bca95aab3f (patch) | |
tree | a581cdd461e907e8d779f59c05c9350f6820600b /src | |
parent | 457d9d26e194465997f702cbeb0456a80a22e5d0 (diff) |
Changes from Tom Hawtin to ensure use of correct class loaderorigin
Diffstat (limited to 'src')
-rw-r--r-- | src/org/jdesktop/applet/util/JNLPAppletLauncher.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java index 595f2bc..1c21f8d 100644 --- a/src/org/jdesktop/applet/util/JNLPAppletLauncher.java +++ b/src/org/jdesktop/applet/util/JNLPAppletLauncher.java @@ -37,8 +37,8 @@ * intended for use in the design, construction, operation or * maintenance of any nuclear facility. * - * $Revision: 1.28 $ - * $Date: 2008/10/21 21:28:49 $ + * $Revision: 1.29 $ + * $Date: 2008/10/21 21:33:50 $ * $State: Exp $ */ @@ -1966,7 +1966,10 @@ public class JNLPAppletLauncher extends Applet { */ private void startSubApplet() { try { - subApplet = (Applet)Class.forName(subAppletClassName).newInstance(); + subApplet = (Applet) + Class.forName(subAppletClassName, + true, + Thread.currentThread().getContextClassLoader()).newInstance(); subApplet.setStub(new AppletStubProxy()); } catch (ClassNotFoundException ex) { ex.printStackTrace(); |