diff options
author | Sven Gothel <[email protected]> | 2012-03-13 20:19:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-13 20:19:19 +0100 |
commit | 7d7e7c901d8fe54af1230cbf10e568f1a8433cbe (patch) | |
tree | fe878a3776be351faa3c3f7f10583af5f38c112d /src/nativewindow/classes/javax | |
parent | 558a674f5ed727be1536cffd882d43458ce47a37 (diff) |
Adapt to gluegen Properties/Security commits f4ac27e177f6deb444280d3b375e7d343e38bd080 and eedb4b530fb83fc59a26962bcf7847a1404092a0
Diffstat (limited to 'src/nativewindow/classes/javax')
3 files changed, 4 insertions, 8 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java b/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java index 6709344b5..48c4d31ce 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java +++ b/src/nativewindow/classes/javax/media/nativewindow/DefaultCapabilitiesChooser.java @@ -40,7 +40,6 @@ package javax.media.nativewindow; -import java.security.AccessController; import java.util.List; import jogamp.nativewindow.Debug; @@ -67,7 +66,7 @@ import jogamp.nativewindow.Debug; */ public class DefaultCapabilitiesChooser implements CapabilitiesChooser { - private static final boolean DEBUG = Debug.isPropertyDefined("nativewindow.debug.CapabilitiesChooser", true, AccessController.getContext()); + private static final boolean DEBUG = Debug.isPropertyDefined("nativewindow.debug.CapabilitiesChooser", true); public int chooseCapabilities(final CapabilitiesImmutable desired, final List /*<CapabilitiesImmutable>*/ available, diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index b8cd41b84..16a4ecfe5 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -35,7 +35,6 @@ package javax.media.nativewindow; import java.lang.reflect.Constructor; import java.lang.reflect.Method; -import java.security.AccessControlContext; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Collections; @@ -191,9 +190,8 @@ public abstract class NativeWindowFactory { final ClassLoader cl = NativeWindowFactory.class.getClassLoader(); // Gather the windowing OS first - AccessControlContext acc = AccessController.getContext(); nativeWindowingTypePure = _getNativeWindowingType(); - String tmp = Debug.getProperty("nativewindow.ws.name", true, acc); + String tmp = Debug.getProperty("nativewindow.ws.name", true); if(null==tmp || tmp.length()==0) { nativeWindowingTypeCustom = nativeWindowingTypePure; } else { @@ -206,7 +204,7 @@ public abstract class NativeWindowFactory { } isAWTAvailable = false; // may be set to true below - if( !Debug.getBooleanProperty("java.awt.headless", true, acc) && + if( !Debug.getBooleanProperty("java.awt.headless", true) && ReflectionUtil.isClassAvailable(AWTComponentClassName, cl) && ReflectionUtil.isClassAvailable("com.jogamp.nativewindow.awt.AWTGraphicsDevice", cl) ) { diff --git a/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java b/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java index 982ce469b..30f9660f0 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java +++ b/src/nativewindow/classes/javax/media/nativewindow/ToolkitLock.java @@ -29,7 +29,6 @@ package javax.media.nativewindow; import jogamp.nativewindow.Debug; -import java.security.AccessController; /** * Marker for a singleton global recursive blocking lock implementation, @@ -38,7 +37,7 @@ import java.security.AccessController; * One use case is the AWT locking on X11, see {@link jogamp.nativewindow.jawt.JAWTToolkitLock}. */ public interface ToolkitLock { - public static final boolean TRACE_LOCK = Debug.isPropertyDefined("nativewindow.debug.ToolkitLock.TraceLock", true, AccessController.getContext()); + public static final boolean TRACE_LOCK = Debug.isPropertyDefined("nativewindow.debug.ToolkitLock.TraceLock", true); public void lock(); public void unlock(); |