jdk/src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java
--- a/jdk/src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java Tue Nov 08 14:48:55 2016 +0530
+++ b/jdk/src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java Tue Nov 08 13:23:16 2016 +0100
@@ -46,8 +46,12 @@
// Get algorithm constraints from the specified security property.
static String[] getAlgorithms(String propertyName) {
String property = AccessController.doPrivileged(
- (PrivilegedAction<String>) () -> Security.getProperty(
- propertyName));
+ new PrivilegedAction<String>() {
+ @Override
+ public String run() {
+ return Security.getProperty(propertyName);
+ }
+ });
String[] algorithmsInProperty = null;
if (property != null && !property.isEmpty()) {