src/share/classes/java/net/NetworkInterface.java

Print this page

        

*** 51,61 **** private boolean virtual = false; private static final NetworkInterface defaultInterface; private static final int defaultIndex; /* index of defaultInterface */ static { ! AccessController.doPrivileged(new LoadLibraryAction("net")); init(); defaultInterface = DefaultInterface.getDefault(); if (defaultInterface != null) { defaultIndex = defaultInterface.getIndex(); } else { --- 51,68 ---- private boolean virtual = false; private static final NetworkInterface defaultInterface; private static final int defaultIndex; /* index of defaultInterface */ static { ! AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("net"); ! return null; ! } ! }); ! init(); defaultInterface = DefaultInterface.getDefault(); if (defaultInterface != null) { defaultIndex = defaultInterface.getIndex(); } else {