< prev index next >

src/java.base/share/classes/jdk/internal/reflect/MethodAccessorImpl.java

Print this page
*** 43,6 ***
--- 43,11 ---
  abstract class MethodAccessorImpl extends MagicAccessorImpl
      implements MethodAccessor {
      /** Matches specification in {@link java.lang.reflect.Method} */
      public abstract Object invoke(Object obj, Object[] args)
          throws IllegalArgumentException, InvocationTargetException;
+ 
+     public Object invoke(Object obj, Object[] args, Class<?> caller)
+             throws IllegalArgumentException, InvocationTargetException {
+         return invoke(obj, args);
+     }
  }
< prev index next >