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

Print this page

        

@@ -24,13 +24,12 @@
  */
 
 package sun.security.smartcardio;
 
 import java.security.AccessController;
+import java.security.PrivilegedAction;
 
-import sun.security.action.LoadLibraryAction;
-
 // Platform specific code and constants
 class PlatformPCSC {
 
     static final Throwable initException;
 

@@ -42,12 +41,17 @@
         initException = loadLibrary();
     }
 
     private static Throwable loadLibrary() {
         try {
-            AccessController.doPrivileged(new LoadLibraryAction("j2pcsc"));
+            AccessController.doPrivileged(new PrivilegedAction<Void>() {
+                public Void run() {
+                    System.loadLibrary("j2pcsc");
             return null;
+                }
+            });
+            return null;
         } catch (Throwable e) {
             return e;
         }
     }