8146556: jdk.dynalink.beans.ClassLinker can avoid using specific lookup and can use publicLookup instead
Reviewed-by: jlaskey
This commit is contained in:
parent
1c39decc2c
commit
3b28163296
@ -102,7 +102,7 @@ class ClassLinker extends BeanLinker {
|
|||||||
setPropertyGetter("static", FOR_CLASS, ValidationType.EXACT_CLASS);
|
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));
|
"forClass", MethodType.methodType(StaticClass.class, Class.class));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user