8154067: Avoid early use of limited privilege escalation in InnerClassLambdaMetafactory
authorredestad
Tue, 12 Apr 2016 21:41:28 +0200
changeset 37310 eb1dccfaaa3c
parent 37309 8f530b9d18f4
child 37311 9ceaae6762fd
8154067: Avoid early use of limited privilege escalation in InnerClassLambdaMetafactory Reviewed-by: alanb, mchung, mullan, briangoetz
jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
--- a/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java	Tue Apr 12 09:37:46 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java	Tue Apr 12 21:41:28 2016 +0200
@@ -89,8 +89,7 @@
     static {
         final String key = "jdk.internal.lambda.dumpProxyClasses";
         String path = AccessController.doPrivileged(
-                new GetPropertyAction(key), null,
-                new PropertyPermission(key , "read"));
+                new GetPropertyAction(key));
         dumper = (null == path) ? null : ProxyClassesDumper.getInstance(path);
     }