src/share/classes/sun/nio/ch/Util.java

Print this page

        

*** 470,483 **** public static void load() { synchronized (Util.class) { if (loaded) return; loaded = true; ! java.security.AccessController ! .doPrivileged(new sun.security.action.LoadLibraryAction("net")); ! java.security.AccessController ! .doPrivileged(new sun.security.action.LoadLibraryAction("nio")); // IOUtil must be initialized; Its native methods are called from // other places in native nio code so they must be set up. IOUtil.initIDs(); } } --- 470,488 ---- public static void load() { synchronized (Util.class) { if (loaded) return; loaded = true; ! java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("net"); ! System.loadLibrary("nio"); ! return null; ! } ! }); ! // IOUtil must be initialized; Its native methods are called from // other places in native nio code so they must be set up. IOUtil.initIDs(); } }