src/macosx/classes/com/apple/laf/AquaFileView.java

Print this page

        

@@ -24,11 +24,10 @@
  */
 
 package com.apple.laf;
 
 import java.io.*;
-import java.security.PrivilegedAction;
 import java.util.*;
 import java.util.Map.Entry;
 
 import javax.swing.Icon;
 import javax.swing.filechooser.FileView;

@@ -55,12 +54,18 @@
     static final int kLSItemInfoAppIsScriptable    = 0x00000800; /* App can be scripted*/
     static final int kLSItemInfoIsVolume           = 0x00001000; /* Item is a volume*/
     static final int kLSItemInfoExtensionIsHidden  = 0x00100000; /* Item has a hidden extension*/
 
     static {
-        java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osxui"));
+        java.security.AccessController.doPrivileged(
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("osxui");
+                    return null;
     }
+            });
+    }
 
     // TODO: Un-comment this out when the native version exists
     //private static native String getNativePathToRunningJDKBundle();
     private static native String getNativePathToSharedJDKBundle();