src/share/classes/java/net/DatagramPacket.java

Print this page

        

@@ -45,11 +45,16 @@
     /**
      * Perform class initialization
      */
     static {
         java.security.AccessController.doPrivileged(
-                  new sun.security.action.LoadLibraryAction("net"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("net");
+                    return null;
+                }
+            });
         init();
     }
 
     /*
      * The fields of this class are package-private since DatagramSocketImpl