diff options
author | Sven Gothel <[email protected]> | 2011-09-21 20:53:08 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-21 20:53:08 +0200 |
commit | 8bdf543c561c8ddeb58cfd62c02debff333b8455 (patch) | |
tree | 0a1930730f28498402af8b4bf276c6b02b5edac3 /src/newt | |
parent | f5807168950d74c96a3040fd1581ae93e71c4978 (diff) |
Proper usage of loadLibrary
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/classes/jogamp/newt/NEWTJNILibLoader.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/newt/classes/jogamp/newt/NEWTJNILibLoader.java b/src/newt/classes/jogamp/newt/NEWTJNILibLoader.java index 7b89398db..a47079baf 100644 --- a/src/newt/classes/jogamp/newt/NEWTJNILibLoader.java +++ b/src/newt/classes/jogamp/newt/NEWTJNILibLoader.java @@ -39,21 +39,16 @@ package jogamp.newt; -// FIXME: refactor Java SE dependencies -//import java.awt.Toolkit; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; import java.security.AccessController; import java.security.PrivilegedAction; -import java.util.HashSet; import com.jogamp.common.jvm.JNILibLoaderBase; public class NEWTJNILibLoader extends JNILibLoaderBase { public static void loadNEWT() { - AccessController.doPrivileged(new PrivilegedAction() { + AccessController.doPrivileged(new PrivilegedAction<Object>() { public Object run() { - loadLibrary("newt", null, true); + loadLibrary("newt", false); return null; } }); |