src/share/classes/java/net/InetAddress.java

Print this page

        

@@ -232,11 +232,17 @@
      * Load net library into runtime, and perform initializations.
      */
     static {
         preferIPv6Address = java.security.AccessController.doPrivileged(
             new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue();
-        AccessController.doPrivileged(new LoadLibraryAction("net"));
+        AccessController.doPrivileged(
+            new java.security.PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("net");
+                    return null;
+                }
+            });
         init();
     }
 
     /**
      * Constructor for the Socket.accept() method.