src/windows/classes/sun/security/smartcardio/PlatformPCSC.java

Print this page

        

*** 24,36 **** */ package sun.security.smartcardio; import java.security.AccessController; - import sun.security.action.LoadLibraryAction; - // Platform specific code and constants class PlatformPCSC { static final Throwable initException; --- 24,35 ---- */ package sun.security.smartcardio; import java.security.AccessController; + import java.security.PrivilegedAction; // Platform specific code and constants class PlatformPCSC { static final Throwable initException;
*** 42,53 **** initException = loadLibrary(); } private static Throwable loadLibrary() { try { ! AccessController.doPrivileged(new LoadLibraryAction("j2pcsc")); return null; } catch (Throwable e) { return e; } } --- 41,57 ---- initException = loadLibrary(); } private static Throwable loadLibrary() { try { ! AccessController.doPrivileged(new PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("j2pcsc"); return null; + } + }); + return null; } catch (Throwable e) { return e; } }