src/share/classes/java/net/AbstractPlainSocketImpl.java

Print this page

        

*** 76,87 **** /** * Load net library into runtime. */ static { java.security.AccessController.doPrivileged( ! new sun.security.action.LoadLibraryAction("net")); } /** * Creates a socket with a boolean that specifies whether this * is a stream socket (true) or an unconnected UDP socket (false). */ --- 76,92 ---- /** * Load net library into runtime. */ static { java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("net"); ! return null; } + }); + } /** * Creates a socket with a boolean that specifies whether this * is a stream socket (true) or an unconnected UDP socket (false). */