src/macosx/classes/apple/launcher/JavaAppLauncher.java

Print this page

        

@@ -25,21 +25,26 @@
 
 package apple.launcher;
 
 import java.io.*;
 import java.lang.reflect.*;
-import java.security.PrivilegedAction;
 import java.text.MessageFormat;
 import java.util.*;
 import java.util.jar.*;
 
 import javax.swing.*;
 
 class JavaAppLauncher implements Runnable {
     static {
-        java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osx"));
+        java.security.AccessController.doPrivileged(
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("osx");
+                    return null;
     }
+            });
+    }
 
     private static native <T> T nativeConvertAndRelease(final long ptr);
     private static native void nativeInvokeNonPublic(Class<? extends Method> cls, Method m, String[] args);
 
     // entry point from native