src/macosx/classes/com/apple/concurrent/LibDispatchNative.java

Print this page

        

@@ -25,12 +25,18 @@
 
 package com.apple.concurrent;
 
 final class LibDispatchNative {
         static {
-                java.security.AccessController.doPrivileged((java.security.PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osx"));
+        java.security.AccessController.doPrivileged(
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("osx");
+                    return null;
         }
+            });
+        }
 
         static native boolean nativeIsDispatchSupported();
         static native long nativeGetMainQueue();
         static native long nativeCreateConcurrentQueue(int priority);
         static native long nativeCreateSerialQueue(String name);