From 1396c3ca6fc675dcf4bdea708c8a8c89d481e3b8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 14 Jan 2023 21:29:29 +0100 Subject: Replace AccessController.doPrivileged() w/ SecurityUtil.doPrivileged() --- .../gluegen/test/junit/generation/BindingJNILibLoader.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/junit/com/jogamp') 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() { - public Object run() { + SecurityUtil.doPrivileged(new PrivilegedAction() { + @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() { - public Object run() { + SecurityUtil.doPrivileged(new PrivilegedAction() { + @Override + public Object run() { loadLibrary("Bindingtest1p2", null, true, BindingJNILibLoader.class.getClassLoader()); return null; } -- cgit v1.2.3