equal
deleted
inserted
replaced
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 } |