aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/jvm
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-14 21:29:29 +0100
committerSven Gothel <[email protected]>2023-01-14 21:29:29 +0100
commit1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 (patch)
treeaab2100371d332f86ffe2b86a906565fdb2576e2 /src/java/com/jogamp/common/jvm
parent8edb09f4851a713b0e9817b4d2f081e0de86eaf3 (diff)
Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged()
Diffstat (limited to 'src/java/com/jogamp/common/jvm')
-rw-r--r--src/java/com/jogamp/common/jvm/JNILibLoaderBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
index eee65d8..7859d2e 100644
--- a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
+++ b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
@@ -44,7 +44,6 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URISyntaxException;
import java.net.URL;
-import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.HashSet;
@@ -56,6 +55,7 @@ import com.jogamp.common.net.Uri;
import com.jogamp.common.os.NativeLibrary;
import com.jogamp.common.util.JarUtil;
import com.jogamp.common.util.PropertyAccess;
+import com.jogamp.common.util.SecurityUtil;
import com.jogamp.common.util.cache.TempJarCache;
import jogamp.common.Debug;
@@ -512,7 +512,7 @@ public class JNILibLoaderBase {
final String sunAppletLauncherProperty = "sun.jnlp.applet.launcher";
final String sunAppletLauncherClassName = "org.jdesktop.applet.util.JNLPAppletLauncher";
- final Method loadLibraryMethod = AccessController.doPrivileged(new PrivilegedAction<Method>() {
+ final Method loadLibraryMethod = SecurityUtil.doPrivileged(new PrivilegedAction<Method>() {
@Override
public Method run() {
// FIXME: remove