diff options
author | Sven Gothel <[email protected]> | 2023-01-14 21:29:29 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-01-14 21:29:29 +0100 |
commit | 1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 (patch) | |
tree | aab2100371d332f86ffe2b86a906565fdb2576e2 /src/junit | |
parent | 8edb09f4851a713b0e9817b4d2f081e0de86eaf3 (diff) |
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/junit')
-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; } |