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

Print this page

        

*** 65,76 **** /** * Load net library into runtime. */ static { java.security.AccessController.doPrivileged( ! new sun.security.action.LoadLibraryAction("net")); } /** * Creates a datagram socket */ protected synchronized void create() throws SocketException { --- 65,81 ---- /** * 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 datagram socket */ protected synchronized void create() throws SocketException {