8154067: Avoid early use of limited privilege escalation in InnerClassLambdaMetafactory

Reviewed-by: alanb, mchung, mullan, briangoetz
This commit is contained in:
Claes Redestad 2016-04-12 21:41:28 +02:00
parent cfb375b438
commit 08d525d5fc

View File

@ -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);
}