nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/ClassLinker.java
changeset 34900 96c0c150eb21
parent 34447 ec4c069f9436
child 36686 a351eacd4c42
equal deleted inserted replaced
34899:425b1198ddf0 34900:96c0c150eb21
   100         super(Class.class);
   100         super(Class.class);
   101         // Map "classObject.static" to StaticClass.forClass(classObject). Can use EXACT_CLASS since class Class is final.
   101         // Map "classObject.static" to StaticClass.forClass(classObject). Can use EXACT_CLASS since class Class is final.
   102         setPropertyGetter("static", FOR_CLASS, ValidationType.EXACT_CLASS);
   102         setPropertyGetter("static", FOR_CLASS, ValidationType.EXACT_CLASS);
   103     }
   103     }
   104 
   104 
   105     private static final MethodHandle FOR_CLASS = new Lookup(MethodHandles.lookup()).findStatic(StaticClass.class,
   105     private static final MethodHandle FOR_CLASS = Lookup.PUBLIC.findStatic(StaticClass.class,
   106             "forClass", MethodType.methodType(StaticClass.class, Class.class));
   106             "forClass", MethodType.methodType(StaticClass.class, Class.class));
   107 
   107 
   108 }
   108 }