src/macosx/classes/java/util/prefs/MacOSXPreferencesFile.java

Print this page

        

@@ -77,12 +77,18 @@
 */
 
 class MacOSXPreferencesFile {
 
     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;
     }
+            });
+    }
 
     private class FlushTask extends TimerTask {
         public void run() {
             MacOSXPreferencesFile.flushWorld();
         }