src/share/classes/java/awt/event/NativeLibLoader.java

Print this page

        

@@ -52,8 +52,13 @@
      * For now, we know it's done by the implementation, and we assume
      * that the name of the library is "awt".  -br.
      */
     static void loadLibraries() {
         java.security.AccessController.doPrivileged(
-                new sun.security.action.LoadLibraryAction("awt"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("awt");
+                    return null;
     }
+            });
+    }
 }