public class java.lang.reflect.AccessibleObject implements java.lang.reflect.AnnotatedElement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.lang.reflect.AccessibleObject
super_class: java.lang.Object
{
boolean override;
descriptor: Z
flags: (0x0000)
static final jdk.internal.reflect.ReflectionFactory reflectionFactory;
descriptor: Ljdk/internal/reflect/ReflectionFactory;
flags: (0x0018) ACC_STATIC, ACC_FINAL
volatile java.lang.Object accessCheckCache;
descriptor: Ljava/lang/Object;
flags: (0x0040) ACC_VOLATILE
private static volatile boolean printStackWhenAccessFails;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static volatile boolean printStackPropertiesSet;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.internal.reflect.ReflectionFactory$GetReflectionFactoryAction
dup
invokespecial jdk.internal.reflect.ReflectionFactory$GetReflectionFactoryAction.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast jdk.internal.reflect.ReflectionFactory
2: putstatic java.lang.reflect.AccessibleObject.reflectionFactory:Ljdk/internal/reflect/ReflectionFactory;
3: return
LocalVariableTable:
Start End Slot Name Signature
static void checkPermission();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
getstatic sun.security.util.SecurityConstants.ACCESS_PERMISSION:Ljava/lang/reflect/ReflectPermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 sm Ljava/lang/SecurityManager;
public static void setAccessible(java.lang.reflect.AccessibleObject[], boolean);
descriptor: ([Ljava/lang/reflect/AccessibleObject;Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: invokestatic java.lang.reflect.AccessibleObject.checkPermission:()V
1: iload 1
ifeq 9
2: invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
astore 2
start local 2 3: aload 0
invokevirtual java.lang.reflect.AccessibleObject[].clone:()Ljava/lang/Object;
checkcast java.lang.reflect.AccessibleObject[]
astore 0
4: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 8
StackMap locals: java.lang.reflect.AccessibleObject[] int java.lang.Class top int int java.lang.reflect.AccessibleObject[]
StackMap stack:
5: aload 6
iload 4
aaload
astore 3
start local 3 6: aload 3
aload 2
invokevirtual java.lang.reflect.AccessibleObject.checkCanSetAccessible:(Ljava/lang/Class;)V
end local 3 7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 5
if_icmplt 5
end local 2 9: StackMap locals: java.lang.reflect.AccessibleObject[] int
StackMap stack:
aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 13
StackMap locals: java.lang.reflect.AccessibleObject[] int top int int java.lang.reflect.AccessibleObject[]
StackMap stack:
10: aload 5
iload 3
aaload
astore 2
start local 2 11: aload 2
iload 1
invokevirtual java.lang.reflect.AccessibleObject.setAccessible0:(Z)Z
pop
end local 2 12: iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
iload 4
if_icmplt 10
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 array [Ljava/lang/reflect/AccessibleObject;
0 15 1 flag Z
3 9 2 caller Ljava/lang/Class<*>;
6 7 3 ao Ljava/lang/reflect/AccessibleObject;
11 12 2 ao Ljava/lang/reflect/AccessibleObject;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
array
flag
public void setAccessible(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic java.lang.reflect.AccessibleObject.checkPermission:()V
1: aload 0
iload 1
invokevirtual java.lang.reflect.AccessibleObject.setAccessible0:(Z)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/lang/reflect/AccessibleObject;
0 3 1 flag Z
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
flag
boolean setAccessible0(boolean);
descriptor: (Z)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield java.lang.reflect.AccessibleObject.override:Z
1: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/reflect/AccessibleObject;
0 2 1 flag Z
MethodParameters:
Name Flags
flag
public final boolean trySetAccessible();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=1
start local 0 0: invokestatic java.lang.reflect.AccessibleObject.checkPermission:()V
1: aload 0
getfield java.lang.reflect.AccessibleObject.override:Z
ifeq 2
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
ldc Ljava/lang/reflect/Member;
aload 0
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 4
3: aload 0
iconst_1
invokevirtual java.lang.reflect.AccessibleObject.setAccessible0:(Z)Z
ireturn
4: StackMap locals:
StackMap stack:
aload 0
checkcast java.lang.reflect.Member
invokeinterface java.lang.reflect.Member.getDeclaringClass:()Ljava/lang/Class;
astore 1
start local 1 5: aload 1
ldc Ljava/lang/Class;
if_acmpne 7
aload 0
instanceof java.lang.reflect.Constructor
ifeq 7
6: iconst_0
ireturn
7: StackMap locals: java.lang.Class
StackMap stack:
aload 0
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
8: aload 1
9: iconst_0
10: invokevirtual java.lang.reflect.AccessibleObject.checkCanSetAccessible:(Ljava/lang/Class;Ljava/lang/Class;Z)Z
11: ifeq 13
12: aload 0
iconst_1
invokevirtual java.lang.reflect.AccessibleObject.setAccessible0:(Z)Z
ireturn
13: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljava/lang/reflect/AccessibleObject;
5 14 1 declaringClass Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
void checkCanSetAccessible(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0000)
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 caller Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
caller
final void checkCanSetAccessible(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual java.lang.reflect.AccessibleObject.checkCanSetAccessible:(Ljava/lang/Class;Ljava/lang/Class;Z)Z
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/reflect/AccessibleObject;
0 2 1 caller Ljava/lang/Class<*>;
0 2 2 declaringClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
caller
declaringClass
private boolean checkCanSetAccessible(java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Z)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ldc Ljava/lang/invoke/MethodHandle;
if_acmpne 2
1: new java.lang.IllegalCallerException
dup
invokespecial java.lang.IllegalCallerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 3: aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 5
start local 5 4: aload 4
aload 5
if_acmpne 5
iconst_1
ireturn
5: StackMap locals: java.lang.Module java.lang.Module
StackMap stack:
aload 4
ldc Ljava/lang/Object;
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
if_acmpne 6
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.lang.Module.isNamed:()Z
ifne 7
iconst_1
ireturn
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
astore 6
start local 6 8: aload 0
instanceof java.lang.reflect.Executable
ifeq 11
9: aload 0
checkcast java.lang.reflect.Executable
invokevirtual java.lang.reflect.Executable.getModifiers:()I
istore 7
start local 7 10: goto 12
end local 7 11: StackMap locals: java.lang.String
StackMap stack:
aload 0
checkcast java.lang.reflect.Field
invokevirtual java.lang.reflect.Field.getModifiers:()I
istore 7
start local 7 12: StackMap locals: int
StackMap stack:
aload 2
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
istore 8
start local 8 13: iload 8
ifeq 22
aload 5
aload 6
aload 4
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;Ljava/lang/Module;)Z
ifeq 22
14: iload 7
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 17
15: aload 0
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject.logIfExportedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;)V
16: iconst_1
ireturn
17: StackMap locals: int
StackMap stack:
iload 7
invokestatic java.lang.reflect.Modifier.isProtected:(I)Z
ifeq 22
18: iload 7
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 22
19: aload 0
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject.isSubclassOf:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 22
20: aload 0
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject.logIfExportedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;)V
21: iconst_1
ireturn
22: StackMap locals:
StackMap stack:
aload 5
aload 6
aload 4
invokevirtual java.lang.Module.isOpen:(Ljava/lang/String;Ljava/lang/Module;)Z
ifeq 25
23: aload 0
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject.logIfOpenedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;)V
24: iconst_1
ireturn
25: StackMap locals:
StackMap stack:
iload 3
ifeq 38
26: ldc "Unable to make "
astore 9
start local 9 27: aload 0
instanceof java.lang.reflect.Field
ifeq 29
28: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "field "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
29: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " accessible: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " does not \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
30: iload 8
ifeq 32
iload 7
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 32
31: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "exports"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
goto 33
32: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "opens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
33: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
34: new java.lang.reflect.InaccessibleObjectException
dup
aload 9
invokespecial java.lang.reflect.InaccessibleObjectException.<init>:(Ljava/lang/String;)V
astore 10
start local 10 35: invokestatic java.lang.reflect.AccessibleObject.printStackTraceWhenAccessFails:()Z
ifeq 37
36: aload 10
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.lang.reflect.InaccessibleObjectException.printStackTrace:(Ljava/io/PrintStream;)V
37: StackMap locals: java.lang.reflect.InaccessibleObjectException
StackMap stack:
aload 10
athrow
end local 10 end local 9 38: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Ljava/lang/reflect/AccessibleObject;
0 39 1 caller Ljava/lang/Class<*>;
0 39 2 declaringClass Ljava/lang/Class<*>;
0 39 3 throwExceptionIfDenied Z
3 39 4 callerModule Ljava/lang/Module;
4 39 5 declaringModule Ljava/lang/Module;
8 39 6 pn Ljava/lang/String;
10 11 7 modifiers I
12 39 7 modifiers I
13 39 8 isClassPublic Z
27 38 9 msg Ljava/lang/String;
35 38 10 e Ljava/lang/reflect/InaccessibleObjectException;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Z)Z
MethodParameters:
Name Flags
caller
declaringClass
throwExceptionIfDenied
private boolean isSubclassOf(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: goto 4
1: StackMap locals:
StackMap stack:
aload 1
aload 2
if_acmpne 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 1
5: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/lang/reflect/AccessibleObject;
0 6 1 queryClass Ljava/lang/Class<*>;
0 6 2 ofClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
queryClass
ofClass
private void logIfOpenedForIllegalAccess(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 3
start local 3 1: aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 2: aload 3
ifnull 6
aload 3
invokevirtual java.lang.Module.isNamed:()Z
ifne 6
aload 4
invokevirtual java.lang.Module.isNamed:()Z
ifeq 6
3: invokestatic jdk.internal.module.IllegalAccessLogger.illegalAccessLogger:()Ljdk/internal/module/IllegalAccessLogger;
astore 5
start local 5 4: aload 5
ifnull 6
5: aload 5
aload 1
aload 2
aload 0
invokedynamic get(Ljava/lang/reflect/AccessibleObject;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/reflect/AccessibleObject.toShortString()Ljava/lang/String; (5)
()Ljava/lang/String;
invokevirtual jdk.internal.module.IllegalAccessLogger.logIfOpenedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)V
end local 5 6: StackMap locals: java.lang.Module java.lang.Module
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/reflect/AccessibleObject;
0 7 1 caller Ljava/lang/Class<*>;
0 7 2 declaringClass Ljava/lang/Class<*>;
1 7 3 callerModule Ljava/lang/Module;
2 7 4 targetModule Ljava/lang/Module;
4 6 5 logger Ljdk/internal/module/IllegalAccessLogger;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
caller
declaringClass
private void logIfExportedForIllegalAccess(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 3
start local 3 1: aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 4
start local 4 2: aload 3
ifnull 6
aload 3
invokevirtual java.lang.Module.isNamed:()Z
ifne 6
aload 4
invokevirtual java.lang.Module.isNamed:()Z
ifeq 6
3: invokestatic jdk.internal.module.IllegalAccessLogger.illegalAccessLogger:()Ljdk/internal/module/IllegalAccessLogger;
astore 5
start local 5 4: aload 5
ifnull 6
5: aload 5
aload 1
aload 2
aload 0
invokedynamic get(Ljava/lang/reflect/AccessibleObject;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/lang/reflect/AccessibleObject.toShortString()Ljava/lang/String; (5)
()Ljava/lang/String;
invokevirtual jdk.internal.module.IllegalAccessLogger.logIfExportedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)V
end local 5 6: StackMap locals: java.lang.Module java.lang.Module
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/reflect/AccessibleObject;
0 7 1 caller Ljava/lang/Class<*>;
0 7 2 declaringClass Ljava/lang/Class<*>;
1 7 3 callerModule Ljava/lang/Module;
2 7 4 targetModule Ljava/lang/Module;
4 6 5 logger Ljdk/internal/module/IllegalAccessLogger;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
caller
declaringClass
java.lang.String toShortString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
public boolean isAccessible();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.lang.reflect.AccessibleObject.override:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9")
public final boolean canAccess(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: ldc Ljava/lang/reflect/Member;
aload 0
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 2
1: aload 0
getfield java.lang.reflect.AccessibleObject.override:Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
checkcast java.lang.reflect.Member
invokeinterface java.lang.reflect.Member.getDeclaringClass:()Ljava/lang/Class;
astore 2
start local 2 3: aload 0
checkcast java.lang.reflect.Member
invokeinterface java.lang.reflect.Member.getModifiers:()I
istore 3
start local 3 4: iload 3
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifne 12
5: aload 0
instanceof java.lang.reflect.Method
ifne 6
aload 0
instanceof java.lang.reflect.Field
ifeq 12
6: StackMap locals: java.lang.Class int
StackMap stack:
aload 1
ifnonnull 8
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "null object for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 14
9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "object is not an instance of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
ifnull 14
13: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "non-null object for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield java.lang.reflect.AccessibleObject.override:Z
ifeq 15
iconst_1
ireturn
15: StackMap locals:
StackMap stack:
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
astore 4
start local 4 16: aload 0
instanceof java.lang.reflect.Constructor
ifeq 19
17: aload 2
astore 5
start local 5 18: goto 22
end local 5 19: StackMap locals: java.lang.Class
StackMap stack:
iload 3
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 20
aconst_null
goto 21
StackMap locals:
StackMap stack:
20: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
StackMap locals:
StackMap stack: java.lang.Class
21: astore 5
start local 5 22: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 4
aload 2
aload 5
iload 3
invokevirtual java.lang.reflect.AccessibleObject.verifyAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljava/lang/reflect/AccessibleObject;
0 23 1 obj Ljava/lang/Object;
3 23 2 declaringClass Ljava/lang/Class<*>;
4 23 3 modifiers I
16 23 4 caller Ljava/lang/Class<*>;
18 19 5 targetClass Ljava/lang/Class<*>;
22 23 5 targetClass Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
obj
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.AssertionError
dup
ldc "All subclasses should override this method"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 annotationClass Ljava/lang/Class<TT;>;
Signature: <T::Ljava/lang/annotation/Annotation;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
annotationClass
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.lang.reflect.AnnotatedElement.isAnnotationPresent:(Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 annotationClass Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
Signature: (Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Z
MethodParameters:
Name Flags
annotationClass
public <T extends java.lang.annotation.Annotation> T[] getAnnotationsByType(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.AssertionError
dup
ldc "All subclasses should override this method"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 annotationClass Ljava/lang/Class<TT;>;
Signature: <T::Ljava/lang/annotation/Annotation;>(Ljava/lang/Class<TT;>;)[TT;
MethodParameters:
Name Flags
annotationClass
public java.lang.annotation.Annotation[] getAnnotations();
descriptor: ()[Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.reflect.AccessibleObject.getDeclaredAnnotations:()[Ljava/lang/annotation/Annotation;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
public <T extends java.lang.annotation.Annotation> T getDeclaredAnnotation(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.reflect.AccessibleObject.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 annotationClass Ljava/lang/Class<TT;>;
Signature: <T::Ljava/lang/annotation/Annotation;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
annotationClass
public <T extends java.lang.annotation.Annotation> T[] getDeclaredAnnotationsByType(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.reflect.AccessibleObject.getAnnotationsByType:(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
0 1 1 annotationClass Ljava/lang/Class<TT;>;
Signature: <T::Ljava/lang/annotation/Annotation;>(Ljava/lang/Class<TT;>;)[TT;
MethodParameters:
Name Flags
annotationClass
public java.lang.annotation.Annotation[] getDeclaredAnnotations();
descriptor: ()[Ljava/lang/annotation/Annotation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.AssertionError
dup
ldc "All subclasses should override this method"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
private boolean isAccessChecked(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield java.lang.reflect.AccessibleObject.accessCheckCache:Ljava/lang/Object;
astore 3
start local 3 1: aload 3
instanceof java.lang.reflect.AccessibleObject$Cache
ifeq 3
2: aload 3
checkcast java.lang.reflect.AccessibleObject$Cache
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject$Cache.isCacheFor:(Ljava/lang/Class;Ljava/lang/Class;)Z
ireturn
3: StackMap locals: java.lang.Object
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/reflect/AccessibleObject;
0 4 1 caller Ljava/lang/Class<*>;
0 4 2 targetClass Ljava/lang/Class<*>;
1 4 3 cache Ljava/lang/Object;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
caller
targetClass
private boolean isAccessChecked(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield java.lang.reflect.AccessibleObject.accessCheckCache:Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof java.lang.ref.WeakReference
ifeq 5
2: aload 2
checkcast java.lang.ref.WeakReference
astore 3
start local 3 3: aload 3
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
aload 1
if_acmpne 4
iconst_1
ireturn
StackMap locals: java.lang.Object java.lang.ref.WeakReference
StackMap stack:
4: iconst_0
ireturn
end local 3 5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/lang/reflect/AccessibleObject;
0 6 1 caller Ljava/lang/Class<*>;
1 6 2 cache Ljava/lang/Object;
3 5 3 ref Ljava/lang/ref/WeakReference<Ljava/lang/Class<*>;>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
caller
final void checkAccess(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
iload 4
invokevirtual java.lang.reflect.AccessibleObject.verifyAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ifne 6
1: aload 1
aload 2
aload 3
iload 4
2: invokestatic jdk.internal.reflect.Reflection.newIllegalAccessException:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Ljava/lang/IllegalAccessException;
astore 5
start local 5 3: invokestatic java.lang.reflect.AccessibleObject.printStackTraceWhenAccessFails:()Z
ifeq 5
4: aload 5
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.lang.IllegalAccessException.printStackTrace:(Ljava/io/PrintStream;)V
5: StackMap locals: java.lang.IllegalAccessException
StackMap stack:
aload 5
athrow
end local 5 6: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/lang/reflect/AccessibleObject;
0 7 1 caller Ljava/lang/Class<*>;
0 7 2 memberClass Ljava/lang/Class<*>;
0 7 3 targetClass Ljava/lang/Class<*>;
0 7 4 modifiers I
3 6 5 e Ljava/lang/IllegalAccessException;
Exceptions:
throws java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;I)V
MethodParameters:
Name Flags
caller
memberClass
targetClass
modifiers
final boolean verifyAccess(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 2
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 3
ifnull 7
3: iload 4
invokestatic java.lang.reflect.Modifier.isProtected:(I)Z
ifeq 7
4: aload 3
aload 2
if_acmpeq 7
5: aload 0
aload 1
aload 3
invokevirtual java.lang.reflect.AccessibleObject.isAccessChecked:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 9
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.reflect.AccessibleObject.isAccessChecked:(Ljava/lang/Class;)Z
ifeq 9
8: iconst_1
ireturn
9: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
iload 4
invokevirtual java.lang.reflect.AccessibleObject.slowVerifyAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/lang/reflect/AccessibleObject;
0 10 1 caller Ljava/lang/Class<*>;
0 10 2 memberClass Ljava/lang/Class<*>;
0 10 3 targetClass Ljava/lang/Class<*>;
0 10 4 modifiers I
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;I)Z
MethodParameters:
Name Flags
caller
memberClass
targetClass
modifiers
private boolean slowVerifyAccess(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnonnull 2
1: aload 2
iload 4
invokestatic jdk.internal.reflect.Reflection.verifyPublicMemberAccess:(Ljava/lang/Class;I)Z
ireturn
2: StackMap locals:
StackMap stack:
aload 1
aload 2
aload 3
iload 4
invokestatic jdk.internal.reflect.Reflection.verifyMemberAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.lang.reflect.AccessibleObject.logIfExportedForIllegalAccess:(Ljava/lang/Class;Ljava/lang/Class;)V
5: aload 3
ifnull 9
6: iload 4
invokestatic java.lang.reflect.Modifier.isProtected:(I)Z
ifeq 9
7: aload 3
aload 2
if_acmpeq 9
8: aload 1
aload 3
invokestatic java.lang.reflect.AccessibleObject$Cache.protectedMemberCallerCache:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Object;
goto 10
9: StackMap locals:
StackMap stack:
new java.lang.ref.WeakReference
dup
aload 1
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
10: StackMap locals:
StackMap stack: java.lang.Object
astore 5
start local 5 11: aload 0
aload 5
putfield java.lang.reflect.AccessibleObject.accessCheckCache:Ljava/lang/Object;
12: iconst_1
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/lang/reflect/AccessibleObject;
0 13 1 caller Ljava/lang/Class<*>;
0 13 2 memberClass Ljava/lang/Class<*>;
0 13 3 targetClass Ljava/lang/Class<*>;
0 13 4 modifiers I
11 13 5 cache Ljava/lang/Object;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;I)Z
MethodParameters:
Name Flags
caller
memberClass
targetClass
modifiers
private static boolean printStackTraceWhenAccessFails();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic java.lang.reflect.AccessibleObject.printStackPropertiesSet:Z
ifne 8
invokestatic jdk.internal.misc.VM.initLevel:()I
iconst_1
if_icmplt 8
1: ldc "sun.reflect.debugModuleAccessChecks"
2: invokestatic sun.security.action.GetPropertyAction.privilegedGetProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 3: aload 0
ifnull 7
4: aload 0
ldc "false"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
iconst_0
goto 6
StackMap locals: java.lang.String
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: putstatic java.lang.reflect.AccessibleObject.printStackWhenAccessFails:Z
7: StackMap locals:
StackMap stack:
iconst_1
putstatic java.lang.reflect.AccessibleObject.printStackPropertiesSet:Z
end local 0 8: StackMap locals:
StackMap stack:
getstatic java.lang.reflect.AccessibleObject.printStackWhenAccessFails:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
3 8 0 s Ljava/lang/String;
java.lang.reflect.AccessibleObject getRoot();
descriptor: ()Ljava/lang/reflect/AccessibleObject;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/reflect/AccessibleObject;
}
SourceFile: "AccessibleObject.java"
NestMembers:
java.lang.reflect.AccessibleObject$Cache
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private Cache = java.lang.reflect.AccessibleObject$Cache of java.lang.reflect.AccessibleObject
public final GetReflectionFactoryAction = jdk.internal.reflect.ReflectionFactory$GetReflectionFactoryAction of jdk.internal.reflect.ReflectionFactory