--- a/jdk/src/windows/classes/sun/security/mscapi/SunMSCAPI.java Wed Mar 26 12:25:09 2014 +0000
+++ b/jdk/src/windows/classes/sun/security/mscapi/SunMSCAPI.java Wed Mar 26 09:00:49 2014 -0700
@@ -31,9 +31,6 @@
import java.util.HashMap;
import java.util.Map;
-import sun.security.action.PutAllAction;
-
-
/**
* A Cryptographic Service Provider for the Microsoft Crypto API.
*
@@ -140,7 +137,12 @@
map.put("Cipher.RSA SupportedKeyClasses", "sun.security.mscapi.Key");
if (map != this) {
- AccessController.doPrivileged(new PutAllAction(this, map));
+ final Provider provider = this;
+ PrivilegedAction<Void> putAllAction = () -> {
+ provider.putAll(map);
+ return null;
+ };
+ AccessController.doPrivileged(putAllAction);
}
}
}