From 08d525d5fcf1ab66f44f99470b55f625b14a2d90 Mon Sep 17 00:00:00 2001 From: Claes Redestad Date: Tue, 12 Apr 2016 21:41:28 +0200 Subject: [PATCH] 8154067: Avoid early use of limited privilege escalation in InnerClassLambdaMetafactory Reviewed-by: alanb, mchung, mullan, briangoetz --- .../classes/java/lang/invoke/InnerClassLambdaMetafactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java b/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java index 9a43947d34e..739573507ab 100644 --- a/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java +++ b/jdk/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java @@ -89,8 +89,7 @@ import static jdk.internal.org.objectweb.asm.Opcodes.*; 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); }