diff options
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java index 47e392a..aeca7e7 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BindingJNILibLoader.java @@ -29,13 +29,16 @@ package com.jogamp.gluegen.test.junit.generation; import com.jogamp.common.jvm.JNILibLoaderBase; +import com.jogamp.common.util.SecurityUtil; + import java.security.*; public class BindingJNILibLoader extends JNILibLoaderBase { public static void loadBindingtest1p1() { - AccessController.doPrivileged(new PrivilegedAction<Object>() { - public Object run() { + SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { + @Override + public Object run() { loadLibrary("Bindingtest1p1", null, true, BindingJNILibLoader.class.getClassLoader()); return null; } @@ -43,8 +46,9 @@ public class BindingJNILibLoader extends JNILibLoaderBase { } public static void loadBindingtest1p2() { - AccessController.doPrivileged(new PrivilegedAction<Object>() { - public Object run() { + SecurityUtil.doPrivileged(new PrivilegedAction<Object>() { + @Override + public Object run() { loadLibrary("Bindingtest1p2", null, true, BindingJNILibLoader.class.getClassLoader()); return null; } |