|
From: <ka...@us...> - 2011-05-07 16:29:21
|
Revision: 3526
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3526&view=rev
Author: kappa1
Date: 2011-05-07 16:29:13 +0000 (Sat, 07 May 2011)
Log Message:
-----------
AppletLoader: remove the last dependency on the sun.* package.
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 2011-05-04 23:11:11 UTC (rev 3525)
+++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2011-05-07 16:29:13 UTC (rev 3526)
@@ -84,8 +84,6 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
-import sun.security.util.SecurityConstants;
-
/**
* <p>
* The AppletLoader enables deployment of LWJGL to applets in an easy
@@ -1046,12 +1044,12 @@
if (host != null && (host.length() > 0)) {
// add permission for downloaded jars to access host they were from
- perms.add(new SocketPermission(host, SecurityConstants.SOCKET_CONNECT_ACCEPT_ACTION));
+ perms.add(new SocketPermission(host, "connect,accept"));
}
else if ( "file".equals(codesource.getLocation().getProtocol()) ) {
// if running locally add file permission
String path = codesource.getLocation().getFile().replace('/', File.separatorChar);
- perms.add(new FilePermission(path, SecurityConstants.FILE_READ_ACTION));
+ perms.add(new FilePermission(path, "read"));
}
} catch (Exception e) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|