src/share/classes/sun/security/krb5/SCDynamicStoreConfig.java

Print this page

        

@@ -34,11 +34,17 @@
 public class SCDynamicStoreConfig {
     private static native void installNotificationCallback();
     private static native Hashtable<String, Object> getKerberosConfig();
 
     static {
-        java.security.AccessController.doPrivileged(new sun.security.action.LoadLibraryAction("osx"));
+        java.security.AccessController.doPrivileged(
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("osx");
+                    return null;
+                }
+            });
         installNotificationCallback();
     }
 
     private static Vector<String> unwrapHost(Collection<Hashtable<String, String>> c) {
         Vector<String> vector = new Vector<String>();