< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java

Print this page
rev 55657 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs

@@ -65,17 +65,11 @@
 class CAccessibility implements PropertyChangeListener {
     private static Set<String> ignoredRoles;
 
     static {
         // Need to load the native library for this code.
-        java.security.AccessController.doPrivileged(
-            new java.security.PrivilegedAction<Void>() {
-                public Void run() {
-                    System.loadLibrary("awt");
-                    return null;
-                }
-            });
+        jdk.internal.access.SharedSecrets.getJavaLangAccess().loadLibrary("awt");
     }
 
     static CAccessibility sAccessibility;
     static synchronized CAccessibility getAccessibility(final String[] roles) {
         if (sAccessibility != null) return sAccessibility;
< prev index next >