public class sun.invoke.util.VerifyAccess
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.invoke.util.VerifyAccess
super_class: java.lang.Object
{
private static final int UNCONDITIONAL_ALLOWED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final int MODULE_ALLOWED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private static final int PACKAGE_ONLY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int PACKAGE_ALLOWED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int PROTECTED_OR_PACKAGE_ALLOWED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 12
private static final int ALL_ACCESS_MODES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/invoke/util/VerifyAccess;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lsun/invoke/util/VerifyAccess;
public static boolean isMemberAccessible(java.lang.Class<?>, java.lang.Class<?>, int, java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/Class;I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iload 5
ifne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 2
iload 5
bipush -64
iand
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 4
iload 5
invokestatic sun.invoke.util.VerifyAccess.isClassAccessible:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
aload 3
if_acmpne 7
5: iload 5
iconst_2
iand
ifeq 7
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iload 2
bipush 7
iand
tableswitch { // 0 - 4
0: 23
1: 8
2: 28
3: 36
4: 10
default: 36
}
8: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 9
iload 5
iconst_1
iand
ifne 9
iload 5
bipush 32
iand
ifne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
10: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 11
aload 1
invokevirtual java.lang.Class.isInterface:()Z
ifeq 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals:
StackMap stack:
iload 5
bipush 12
iand
ifeq 14
12: aload 1
aload 3
invokestatic sun.invoke.util.VerifyAccess.isSamePackage:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 14
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
iload 5
iconst_4
iand
ifne 16
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
iload 2
bipush 8
iand
ifeq 19
17: aload 0
aload 3
invokestatic sun.invoke.util.VerifyAccess.isRelatedClass:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 19
18: iconst_0
ireturn
19: StackMap locals:
StackMap stack:
iload 5
iconst_4
iand
ifeq 22
20: aload 3
aload 1
invokestatic sun.invoke.util.VerifyAccess.isSubClass:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 22
21: iconst_1
ireturn
22: StackMap locals:
StackMap stack:
iconst_0
ireturn
23: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 24
aload 1
invokevirtual java.lang.Class.isInterface:()Z
ifeq 24
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
24: StackMap locals:
StackMap stack:
iload 5
bipush 8
iand
ifeq 27
25: aload 1
aload 3
invokestatic sun.invoke.util.VerifyAccess.isSamePackage:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 27
26: iconst_1
ireturn
StackMap locals:
StackMap stack:
27: iconst_0
ireturn
28: StackMap locals:
StackMap stack:
iload 5
iconst_2
iand
ifeq 31
29: aload 1
aload 3
invokestatic jdk.internal.reflect.Reflection.areNestMates:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 31
30: iconst_1
goto 32
StackMap locals:
StackMap stack:
31: iconst_0
StackMap locals:
StackMap stack: int
32: istore 6
start local 6 33: getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 35
iload 6
ifeq 34
aload 0
aload 1
if_acmpeq 35
StackMap locals: int
StackMap stack:
34: iload 6
ifeq 35
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
35: StackMap locals:
StackMap stack:
iload 6
ireturn
end local 6 36: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "bad modifiers: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokestatic java.lang.reflect.Modifier.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
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 37 0 refc Ljava/lang/Class<*>;
0 37 1 defc Ljava/lang/Class<*>;
0 37 2 mods I
0 37 3 lookupClass Ljava/lang/Class<*>;
0 37 4 prevLookupClass Ljava/lang/Class<*>;
0 37 5 allowedModes I
33 36 6 canAccess Z
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;ILjava/lang/Class<*>;Ljava/lang/Class<*>;I)Z
MethodParameters:
Name Flags
refc
defc
mods
lookupClass
prevLookupClass
allowedModes
static boolean isRelatedClass(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 4
1: aload 0
aload 1
invokestatic sun.invoke.util.VerifyAccess.isSubClass:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 4
2: aload 1
aload 0
invokestatic sun.invoke.util.VerifyAccess.isSubClass:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 4
3: iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 refc Ljava/lang/Class<*>;
0 5 1 lookupClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
refc
lookupClass
static boolean isSubClass(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 3
1: aload 0
invokevirtual java.lang.Class.isInterface:()Z
ifne 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 lookupClass Ljava/lang/Class<*>;
0 4 1 defc Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
lookupClass
defc
static int getClassModifiers(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifne 1
aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getModifiers:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.internal.reflect.Reflection.getClassAccessFlags:(Ljava/lang/Class;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 c Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)I
MethodParameters:
Name Flags
c
public static boolean isClassAccessible(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifne 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 2
iload 3
bipush -64
iand
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iload 3
bipush 8
iand
ifeq 5
3: aload 1
aload 0
invokestatic sun.invoke.util.VerifyAccess.isSamePackage:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 5
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.invoke.util.VerifyAccess.getClassModifiers:(Ljava/lang/Class;)I
istore 4
start local 4 6: iload 4
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 28
7: aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 5
start local 5 8: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 6
start local 6 9: aload 5
ifnonnull 12
10: getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 11
aload 6
ifnull 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals: int java.lang.Module java.lang.Module
StackMap stack:
iconst_1
ireturn
12: StackMap locals:
StackMap stack:
iload 3
bipush 32
iand
ifeq 14
13: aload 6
aload 0
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;)Z
ireturn
14: StackMap locals:
StackMap stack:
aload 5
aload 6
if_acmpne 19
aload 2
ifnonnull 19
15: iload 3
bipush 16
iand
ifeq 17
16: iconst_1
ireturn
17: StackMap locals:
StackMap stack:
getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 18
iload 3
iconst_1
iand
ifne 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
aload 6
aload 0
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;)Z
ireturn
19: StackMap locals:
StackMap stack:
aload 2
ifnull 20
aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
goto 21
20: StackMap locals:
StackMap stack:
aconst_null
21: StackMap locals:
StackMap stack: java.lang.Module
astore 7
start local 7 22: getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 23
aload 6
aload 5
if_acmpne 23
aload 6
aload 7
if_acmpne 23
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
23: StackMap locals: java.lang.Module
StackMap stack:
aload 0
aload 5
aload 7
invokestatic sun.invoke.util.VerifyAccess.isModuleAccessible:(Ljava/lang/Class;Ljava/lang/Module;Ljava/lang/Module;)Z
ifeq 25
24: iconst_1
ireturn
25: StackMap locals:
StackMap stack:
invokestatic jdk.internal.misc.VM.isModuleSystemInited:()Z
ifne 27
26: iconst_1
ireturn
27: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 7 end local 6 end local 5 28: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 refc Ljava/lang/Class<*>;
0 29 1 lookupClass Ljava/lang/Class<*>;
0 29 2 prevLookupClass Ljava/lang/Class<*>;
0 29 3 allowedModes I
6 29 4 mods I
8 28 5 lookupModule Ljava/lang/Module;
9 28 6 refModule Ljava/lang/Module;
22 28 7 prevLookupModule Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;I)Z
MethodParameters:
Name Flags
refc
lookupClass
prevLookupClass
allowedModes
public static boolean isModuleAccessible(java.lang.Class<?>, java.lang.Module, java.lang.Module);
descriptor: (Ljava/lang/Class;Ljava/lang/Module;Ljava/lang/Module;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 3
start local 3 1: getstatic sun.invoke.util.VerifyAccess.$assertionsDisabled:Z
ifne 2
aload 3
aload 1
if_acmpne 2
aload 3
aload 2
if_acmpne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.Module
StackMap stack:
aload 0
invokestatic sun.invoke.util.VerifyAccess.getClassModifiers:(Ljava/lang/Class;)I
istore 4
start local 4 3: iload 4
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 8
4: aload 1
aload 3
invokevirtual java.lang.Module.canRead:(Ljava/lang/Module;)Z
ifeq 8
aload 2
ifnull 5
aload 2
aload 3
invokevirtual java.lang.Module.canRead:(Ljava/lang/Module;)Z
ifeq 8
5: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
astore 5
start local 5 6: aload 3
aload 5
aload 1
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;Ljava/lang/Module;)Z
ifeq 8
aload 2
ifnull 7
aload 3
aload 5
aload 2
invokevirtual java.lang.Module.isExported:(Ljava/lang/String;Ljava/lang/Module;)Z
ifeq 8
7: StackMap locals: java.lang.String
StackMap stack:
iconst_1
ireturn
end local 5 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 refc Ljava/lang/Class<*>;
0 9 1 m1 Ljava/lang/Module;
0 9 2 m2 Ljava/lang/Module;
1 9 3 refModule Ljava/lang/Module;
3 9 4 mods I
6 8 5 pn Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Module;Ljava/lang/Module;)Z
MethodParameters:
Name Flags
refc
m1
m2
public static boolean isTypeVisible(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 3
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 0
StackMap locals:
StackMap stack:
3: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifne 2
4: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifne 5
aload 0
ldc Ljava/lang/Object;
if_acmpne 6
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 2
start local 2 7: aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 8: aload 2
aload 3
if_acmpne 10
9: iconst_1
ireturn
10: StackMap locals: java.lang.ClassLoader java.lang.ClassLoader
StackMap stack:
aload 3
ifnonnull 12
aload 2
ifnull 12
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 2
ifnonnull 14
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "java."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 14
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 4
start local 4 15: new sun.invoke.util.VerifyAccess$1
dup
aload 4
aload 3
invokespecial sun.invoke.util.VerifyAccess$1.<init>:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
16: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Class
astore 5
start local 5 17: aload 0
aload 5
if_acmpne 18
iconst_1
ireturn
StackMap locals: java.lang.String java.lang.Class
StackMap stack:
18: iconst_0
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 19 0 type Ljava/lang/Class<*>;
0 19 1 refc Ljava/lang/Class<*>;
7 19 2 typeLoader Ljava/lang/ClassLoader;
8 19 3 refcLoader Ljava/lang/ClassLoader;
15 19 4 name Ljava/lang/String;
17 19 5 res Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type
refc
public static boolean isTypeVisible(java.lang.invoke.MethodType, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodType;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.invoke.MethodType.returnType:()Ljava/lang/Class;
aload 1
invokestatic sun.invoke.util.VerifyAccess.isTypeVisible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: aload 0
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
istore 3
start local 3 4: goto 8
5: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
aload 1
invokestatic sun.invoke.util.VerifyAccess.isTypeVisible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 3
if_icmplt 5
end local 3 end local 2 9: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 type Ljava/lang/invoke/MethodType;
0 10 1 refc Ljava/lang/Class<*>;
3 9 2 n I
4 9 3 max I
Signature: (Ljava/lang/invoke/MethodType;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type
refc
public static boolean isSameModule(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
aload 1
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 class1 Ljava/lang/Class<*>;
0 2 1 class2 Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
class1
class2
public static boolean isSamePackage(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
if_acmpeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
aload 1
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 class1 Ljava/lang/Class<*>;
0 5 1 class2 Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
class1
class2
public static boolean isSamePackageMember(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.invoke.util.VerifyAccess.isSamePackage:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.invoke.util.VerifyAccess.getOutermostEnclosingClass:(Ljava/lang/Class;)Ljava/lang/Class;
aload 1
invokestatic sun.invoke.util.VerifyAccess.getOutermostEnclosingClass:(Ljava/lang/Class;)Ljava/lang/Class;
if_acmpeq 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 class1 Ljava/lang/Class<*>;
0 7 1 class2 Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
class1
class2
private static java.lang.Class<?> getOutermostEnclosingClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: aload 0
astore 2
start local 2 2: goto 4
3: StackMap locals: java.lang.Class java.lang.Class
StackMap stack:
aload 2
astore 1
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Class.getEnclosingClass:()Ljava/lang/Class;
dup
astore 2
ifnonnull 3
end local 2 5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 c Ljava/lang/Class<*>;
1 6 1 pkgmem Ljava/lang/Class<*>;
2 5 2 enc Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
c
private static boolean loadersAreRelated(java.lang.ClassLoader, java.lang.ClassLoader, boolean);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;Z)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
if_acmpeq 2
aload 0
ifnull 2
1: aload 1
ifnonnull 3
iload 2
ifne 3
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 1
astore 3
start local 3 4: goto 7
5: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 3
aload 0
if_acmpne 6
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 3
StackMap locals:
StackMap stack:
7: aload 3
ifnonnull 5
end local 3 8: iload 2
ifeq 9
iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
astore 3
start local 3 10: goto 13
11: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 3
aload 1
if_acmpne 12
iconst_1
ireturn
12: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 3
StackMap locals:
StackMap stack:
13: aload 3
ifnonnull 11
end local 3 14: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 loader1 Ljava/lang/ClassLoader;
0 15 1 loader2 Ljava/lang/ClassLoader;
0 15 2 loader1MustBeParent Z
4 8 3 scan2 Ljava/lang/ClassLoader;
10 14 3 scan1 Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
loader1
loader2
loader1MustBeParent
public static boolean classLoaderIsAncestor(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
iconst_1
invokestatic sun.invoke.util.VerifyAccess.loadersAreRelated:(Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;Z)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parentClass Ljava/lang/Class<*>;
0 1 1 childClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
parentClass
childClass
}
SourceFile: "VerifyAccess.java"
NestMembers:
sun.invoke.util.VerifyAccess$1
InnerClasses:
sun.invoke.util.VerifyAccess$1