8146556: jdk.dynalink.beans.ClassLinker can avoid using specific lookup and can use publicLookup instead

Reviewed-by: jlaskey
This commit is contained in:
Athijegannathan Sundararajan 2016-01-06 20:19:02 +05:30
parent 1c39decc2c
commit 3b28163296

View File

@ -102,7 +102,7 @@ class ClassLinker extends BeanLinker {
setPropertyGetter("static", FOR_CLASS, ValidationType.EXACT_CLASS);
}
private static final MethodHandle FOR_CLASS = new Lookup(MethodHandles.lookup()).findStatic(StaticClass.class,
private static final MethodHandle FOR_CLASS = Lookup.PUBLIC.findStatic(StaticClass.class,
"forClass", MethodType.methodType(StaticClass.class, Class.class));
}