|
From: <ma...@us...> - 2007-06-11 18:43:14
|
Revision: 2852
http://svn.sourceforge.net/java-game-lib/?rev=2852&view=rev
Author: matzon
Date: 2007-06-11 11:43:13 -0700 (Mon, 11 Jun 2007)
Log Message:
-----------
no longer null'ing SecurityManager
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-06-11 18:10:19 UTC (rev 2851)
+++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-06-11 18:43:13 UTC (rev 2852)
@@ -589,8 +589,8 @@
percentage = 95;
- Class[] parameters = new Class[] { URL.class};
-
+ Class[] parameters = new Class[] {URL.class};
+
// modify class path by adding downloaded jars to it
for (int i = 0; i < urlList.length; i++) {
// get location of jar as a url
@@ -599,7 +599,7 @@
// add to class path
Method method = URLClassLoader.class.getDeclaredMethod("addURL", parameters);
method.setAccessible(true);
- method.invoke((URLClassLoader) ClassLoader.getSystemClassLoader(), new Object[] { u});
+ method.invoke(getClass().getClassLoader(), new Object[] {u});
}
if(debugMode) {
@@ -611,10 +611,6 @@
// Make sure jinput knows about the new path too
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);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|