< 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,81 **** 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; ! } ! }); } static CAccessibility sAccessibility; static synchronized CAccessibility getAccessibility(final String[] roles) { if (sAccessibility != null) return sAccessibility; --- 65,75 ---- class CAccessibility implements PropertyChangeListener { private static Set<String> ignoredRoles; static { // Need to load the native library for this code. ! 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 >