From 944a0ca587d20d193b9f8c7b5edbd0b0bd0d7666 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 3 Jul 2009 23:31:02 +0000 Subject: Fix property query. Thx to Ken pointing this out. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@2018 232f8b59-042b-4e1e-8c03-345bb8c30851 --- .../classes/javax/media/nativewindow/NativeWindowFactory.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/nativewindow/classes/javax') diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index 4f1323ff8..eb0c25aed 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -98,8 +98,9 @@ public abstract class NativeWindowFactory { JVMUtil.initSingleton(); // Gather the windowing OS first - nativeOSNamePure = Debug.getProperty("os.name", false); - nativeOSNameCustom = Debug.getProperty("nativewindow.ws.name", true); + AccessControlContext acc = AccessController.getContext(); + nativeOSNamePure = Debug.getProperty("os.name", false, acc); + nativeOSNameCustom = Debug.getProperty("nativewindow.ws.name", true, acc); if(null==nativeOSNameCustom||nativeOSNameCustom.length()==0) { nativeOSNameCustom = nativeOSNamePure; } @@ -127,8 +128,8 @@ public abstract class NativeWindowFactory { } catch (Exception e) { } } - boolean toolkitLockForced = Debug.getBooleanProperty("nativewindow.locking", true); - boolean awtToolkitLockDisabled = Debug.getBooleanProperty("java.awt.headless", false); + boolean toolkitLockForced = Debug.getBooleanProperty("nativewindow.locking", true, acc); + boolean awtToolkitLockDisabled = Debug.getBooleanProperty("java.awt.headless", false, acc); NativeWindowFactory _factory = null; -- cgit v1.2.3