< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java

Print this page
*** 40,10 ***
--- 40,11 ---
  import sun.invoke.util.VerifyType;
  import sun.invoke.util.Wrapper;
  
  import java.lang.invoke.MethodHandles.Lookup;
  import java.lang.reflect.Array;
+ import java.lang.reflect.Field;
  import java.nio.ByteOrder;
  import java.util.Arrays;
  import java.util.Collections;
  import java.util.HashMap;
  import java.util.Iterator;

*** 1501,10 ***
--- 1502,20 ---
  
              @Override
              public VarHandle insertCoordinates(VarHandle target, int pos, Object... values) {
                  return VarHandles.insertCoordinates(target, pos, values);
              }
+ 
+             @Override
+             public MethodHandle findStatic(Class<?> cls, String name, MethodType methodType) throws NoSuchMethodException, IllegalAccessException {
+                 return IMPL_LOOKUP.findStatic(cls, name, methodType);
+             }
+ 
+             @Override
+             public MethodHandle unreflectGetter(Field field) throws IllegalAccessException {
+                 return IMPL_LOOKUP.unreflectGetter(field);
+             }
          });
      }
  
      /** Result unboxing: ValueConversions.unbox() OR ValueConversions.identity() OR ValueConversions.ignore(). */
      private static MethodHandle unboxResultHandle(Class<?> returnType) {
< prev index next >