changeset 1587:f618bede1afe

8146556: jdk.dynalink.beans.ClassLinker can avoid using specific lookup and can use publicLookup instead Reviewed-by: jlaskey
author sundar
date Wed, 06 Jan 2016 20:19:02 +0530
parents b8a1db67b47b
children 9f96a4b227f3
files src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java	Tue Jan 05 18:40:43 2016 +0530
+++ b/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));
 
 }