src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java

Print this page

        

@@ -65,12 +65,17 @@
     /**
      * Load net library into runtime.
      */
     static {
         java.security.AccessController.doPrivileged(
-                  new sun.security.action.LoadLibraryAction("net"));
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("net");
+                    return null;
     }
+            });
+    }
 
     /**
      * Creates a datagram socket
      */
     protected synchronized void create() throws SocketException {