|
From: <ka...@us...> - 2010-04-14 22:34:49
|
Revision: 3327
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3327&view=rev
Author: kappa1
Date: 2010-04-14 22:34:43 +0000 (Wed, 14 Apr 2010)
Log Message:
-----------
fix: When using unsigned jars with signed lwjgl jars it fails when creating a Display on linux with an AccessController error. This is due to the new XRandR class missing a AccessController.doPriviledged method when it requires out of sandbox access. (LWJGL Applet Distribution is borken on linux without this fix)
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/XRandR.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/XRandR.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/XRandR.java 2010-04-14 20:48:01 UTC (rev 3326)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/XRandR.java 2010-04-14 22:34:43 UTC (rev 3327)
@@ -40,6 +40,8 @@
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
/**
* Utility for working with the xrandr commmand-line utility. Assumes
@@ -103,7 +105,12 @@
* xrandr is not supported
*/
public static Screen[] getConfiguration() {
- populate();
+ AccessController.doPrivileged(new PrivilegedAction() {
+ public Object run() {
+ populate();
+ return null;
+ }
+ });
return (Screen[]) current.clone();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|