# HG changeset patch # User sundar # Date 1452091742 -19800 # Node ID 96c0c150eb216aa225c159a6738030663a2acd2e # Parent 425b1198ddf00e7fb73bc2d130d5b17dd6d03686 8146556: jdk.dynalink.beans.ClassLinker can avoid using specific lookup and can use publicLookup instead Reviewed-by: jlaskey diff -r 425b1198ddf0 -r 96c0c150eb21 nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java --- a/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java Tue Jan 05 18:40:43 2016 +0530 +++ b/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java Wed Jan 06 20:19:02 2016 +0530 @@ -102,7 +102,7 @@ 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)); }