equal
deleted
inserted
replaced
28 import jdk.internal.HotSpotIntrinsicCandidate; |
28 import jdk.internal.HotSpotIntrinsicCandidate; |
29 import jdk.internal.misc.SharedSecrets; |
29 import jdk.internal.misc.SharedSecrets; |
30 import jdk.internal.reflect.CallerSensitive; |
30 import jdk.internal.reflect.CallerSensitive; |
31 import jdk.internal.reflect.MethodAccessor; |
31 import jdk.internal.reflect.MethodAccessor; |
32 import jdk.internal.reflect.Reflection; |
32 import jdk.internal.reflect.Reflection; |
|
33 import jdk.internal.vm.annotation.ForceInline; |
33 import sun.reflect.annotation.ExceptionProxy; |
34 import sun.reflect.annotation.ExceptionProxy; |
34 import sun.reflect.annotation.TypeNotPresentExceptionProxy; |
35 import sun.reflect.annotation.TypeNotPresentExceptionProxy; |
35 import sun.reflect.generics.repository.MethodRepository; |
36 import sun.reflect.generics.repository.MethodRepository; |
36 import sun.reflect.generics.factory.CoreReflectionFactory; |
37 import sun.reflect.generics.factory.CoreReflectionFactory; |
37 import sun.reflect.generics.factory.GenericsFactory; |
38 import sun.reflect.generics.factory.GenericsFactory; |
515 * and the method is an instance method. |
516 * and the method is an instance method. |
516 * @exception ExceptionInInitializerError if the initialization |
517 * @exception ExceptionInInitializerError if the initialization |
517 * provoked by this method fails. |
518 * provoked by this method fails. |
518 */ |
519 */ |
519 @CallerSensitive |
520 @CallerSensitive |
|
521 @ForceInline // to ensure Reflection.getCallerClass optimization |
520 @HotSpotIntrinsicCandidate |
522 @HotSpotIntrinsicCandidate |
521 public Object invoke(Object obj, Object... args) |
523 public Object invoke(Object obj, Object... args) |
522 throws IllegalAccessException, IllegalArgumentException, |
524 throws IllegalAccessException, IllegalArgumentException, |
523 InvocationTargetException |
525 InvocationTargetException |
524 { |
526 { |