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

Print this page

        

*** 232,242 **** * 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")); init(); } /** * Constructor for the Socket.accept() method. --- 232,248 ---- * Load net library into runtime, and perform initializations. */ static { preferIPv6Address = java.security.AccessController.doPrivileged( new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue(); ! AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("net"); ! return null; ! } ! }); init(); } /** * Constructor for the Socket.accept() method.