no longer null'ing SecurityManager

This commit is contained in:
Brian Matzon 2007-06-11 18:43:13 +00:00
parent 92edcd850b
commit ee9c52ddb4
1 changed files with 3 additions and 7 deletions

View File

@ -599,7 +599,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
// add to class path // add to class path
Method method = URLClassLoader.class.getDeclaredMethod("addURL", parameters); Method method = URLClassLoader.class.getDeclaredMethod("addURL", parameters);
method.setAccessible(true); method.setAccessible(true);
method.invoke((URLClassLoader) ClassLoader.getSystemClassLoader(), new Object[] { u}); method.invoke(getClass().getClassLoader(), new Object[] {u});
} }
if(debugMode) { if(debugMode) {
@ -611,10 +611,6 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
// Make sure jinput knows about the new path too // Make sure jinput knows about the new path too
System.setProperty("net.java.games.input.librarypath", path + "natives"); System.setProperty("net.java.games.input.librarypath", path + "natives");
// replace security system to avoid bug where vm fails to
// recognise downloaded jars as signed, when they are
System.setSecurityManager(null);
} }
/** /**