public final class sun.reflect.misc.ReflectUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.reflect.misc.ReflectUtil
super_class: java.lang.Object
{
public static final java.lang.String PROXY_PACKAGE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.proxy"
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/reflect/misc/ReflectUtil;
public static java.lang.Class<?> forName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/String;)V
1: aload 0
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
public static newInstance(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
1: aload 0
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 cls Ljava/lang/Class<*>;
Exceptions:
throws java.lang.InstantiationException, java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Object;
MethodParameters:
Name Flags
cls
public static void ensureMemberAccess(java.lang.Class<?>, java.lang.Class<?>, , );
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnonnull 20
iload 3
invokestatic java.lang.reflect.Modifier.isProtected:(I)Z
ifeq 20
1: iload 3
istore 4
start local 4 2: iload 4
bipush -5
iand
istore 4
3: iload 4
iconst_1
ior
istore 4
4: aload 0
5: aload 1
6: aload 2
7: iload 4
8: invokestatic sun.reflect.Reflection.ensureMemberAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;I)V
9: iload 4
bipush -2
iand
istore 4
10: aload 0
11: aload 1
12: aload 2
13: iload 4
14: invokestatic sun.reflect.Reflection.ensureMemberAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;I)V
15: return
16: StackMap locals: java.lang.Class java.lang.Class java.lang.Object int int
StackMap stack: java.lang.IllegalAccessException
astore 5
start local 5 17: aload 0
aload 1
invokestatic sun.reflect.misc.ReflectUtil.isSubclassOf:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 19
18: return
19: StackMap locals: java.lang.IllegalAccessException
StackMap stack:
aload 5
athrow
end local 5 end local 4 20: StackMap locals:
StackMap stack:
aload 0
21: aload 1
22: aload 2
23: iload 3
24: invokestatic sun.reflect.Reflection.ensureMemberAccess:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Object;I)V
25: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 currentClass Ljava/lang/Class<*>;
0 26 1 memberClass Ljava/lang/Class<*>;
0 26 2 target Ljava/lang/Object;
0 26 3 modifiers I
2 20 4 mods I
17 20 5 e Ljava/lang/IllegalAccessException;
Exception table:
from to target type
9 15 16 Class java.lang.IllegalAccessException
Exceptions:
throws java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Object;I)V
MethodParameters:
Name Flags
currentClass
memberClass
target
modifiers
private static boolean isSubclassOf(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: goto 4
1: StackMap locals:
StackMap stack:
aload 0
aload 1
if_acmpne 3
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 0
4: StackMap locals:
StackMap stack:
aload 0
ifnonnull 1
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 queryClass Ljava/lang/Class<*>;
0 6 1 ofClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
queryClass
ofClass
public static void conservativeCheckMemberAccess(java.lang.reflect.Member);
descriptor: (Ljava/lang/reflect/Member;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: return
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
invokeinterface java.lang.reflect.Member.getDeclaringClass:()Ljava/lang/Class;
astore 2
start local 2 4: aload 2
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
5: aload 0
invokeinterface java.lang.reflect.Member.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 8
6: aload 2
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPublic:(I)Z
ifeq 8
7: return
8: StackMap locals: java.lang.Class
StackMap stack:
aload 1
getstatic sun.security.util.SecurityConstants.CHECK_MEMBER_ACCESS_PERMISSION:Ljava/lang/RuntimePermission;
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 m Ljava/lang/reflect/Member;
1 10 1 sm Ljava/lang/SecurityManager;
4 10 2 declaringClass Ljava/lang/Class<*>;
Exceptions:
throws java.lang.SecurityException
MethodParameters:
Name Flags
m
public static void checkPackageAccess(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/String;)V
1: aload 0
invokestatic sun.reflect.misc.ReflectUtil.isNonPublicProxyClass:(Ljava/lang/Class;)Z
ifeq 3
2: aload 0
invokestatic sun.reflect.misc.ReflectUtil.checkProxyPackageAccess:(Ljava/lang/Class;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
clazz
public static void checkPackageAccess(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 10
2: aload 0
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
4: aload 2
bipush 91
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_2
iadd
istore 3
start local 3 5: iload 3
iconst_1
if_icmple 7
iload 3
aload 2
invokevirtual java.lang.String.length:()I
if_icmpge 7
6: aload 2
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
end local 3 7: StackMap locals: java.lang.SecurityManager java.lang.String
StackMap stack:
aload 2
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 8: iload 3
iconst_m1
if_icmpeq 10
9: aload 1
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkPackageAccess:(Ljava/lang/String;)V
end local 3 end local 2 10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 name Ljava/lang/String;
1 11 1 s Ljava/lang/SecurityManager;
3 10 2 cname Ljava/lang/String;
5 7 3 b I
8 10 3 i I
MethodParameters:
Name Flags
name
public static boolean isPackageAccessible(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.SecurityException
2: pop
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 clazz Ljava/lang/Class<*>;
Exception table:
from to target type
0 1 2 Class java.lang.SecurityException
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
private static boolean isAncestor(java.lang.ClassLoader, java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 2
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 2
2: aload 0
aload 2
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 2
ifnonnull 1
5: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 p Ljava/lang/ClassLoader;
0 6 1 cl Ljava/lang/ClassLoader;
1 6 2 acl Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
p
cl
public static boolean needsPackageAccessCheck(java.lang.ClassLoader, java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
aload 1
if_acmpne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.reflect.misc.ReflectUtil.isAncestor:(Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)Z
ifeq 5
iconst_0
goto 6
StackMap locals:
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 from Ljava/lang/ClassLoader;
0 7 1 to Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
from
to
public static void checkProxyPackageAccess(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 8
2: aload 0
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifeq 8
3: aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.Class java.lang.SecurityManager top int int java.lang.Class[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: StackMap locals: java.lang.Class java.lang.SecurityManager
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 clazz Ljava/lang/Class<*>;
1 9 1 s Ljava/lang/SecurityManager;
5 6 2 intf Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
clazz
public static void checkProxyPackageAccess(java.lang.ClassLoader, java.lang.Class<?>[]);
descriptor: (Ljava/lang/ClassLoader;[Ljava/lang/Class;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 9
2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 8
StackMap locals: java.lang.ClassLoader java.lang.Class[] java.lang.SecurityManager top int int java.lang.Class[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 7
start local 7 5: aload 0
aload 7
invokestatic sun.reflect.misc.ReflectUtil.needsPackageAccessCheck:(Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)Z
ifeq 7
6: aload 3
invokestatic sun.reflect.misc.ReflectUtil.checkPackageAccess:(Ljava/lang/Class;)V
end local 7 end local 3 7: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 5
if_icmplt 3
9: StackMap locals: java.lang.ClassLoader java.lang.Class[] java.lang.SecurityManager
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 ccl Ljava/lang/ClassLoader;
0 10 1 interfaces [Ljava/lang/Class;
1 10 2 sm Ljava/lang/SecurityManager;
4 7 3 intf Ljava/lang/Class<*>;
5 7 7 cl Ljava/lang/ClassLoader;
Signature: (Ljava/lang/ClassLoader;[Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
ccl
interfaces
public static boolean isNonPublicProxyClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpeq 3
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 4
StackMap locals: java.lang.String int
StackMap stack:
3: ldc ""
StackMap locals:
StackMap stack: java.lang.String
4: astore 3
start local 3 5: aload 0
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifeq 6
aload 3
ldc "com.sun.proxy"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
iconst_1
ireturn
StackMap locals: java.lang.String
StackMap stack:
6: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 cls Ljava/lang/Class<*>;
1 7 1 name Ljava/lang/String;
2 7 2 i I
5 7 3 pkg Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
cls
public static void checkProxyMethod(java.lang.Object, java.lang.reflect.Method);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Method;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic java.lang.reflect.Proxy.isProxyClass:(Ljava/lang/Class;)Z
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Not a Proxy instance"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "Can't handle static method"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
astore 2
start local 2 5: aload 2
ldc Ljava/lang/Object;
if_acmpne 9
6: aload 1
invokevirtual java.lang.reflect.Method.getName:()Ljava/lang/String;
astore 3
start local 3 7: aload 3
ldc "hashCode"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
aload 3
ldc "equals"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
aload 3
ldc "toString"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: StackMap locals: java.lang.Class java.lang.String
StackMap stack:
return
end local 3 9: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
invokestatic sun.reflect.misc.ReflectUtil.isSuperInterface:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 11
10: return
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Can't handle: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 proxy Ljava/lang/Object;
0 12 1 method Ljava/lang/reflect/Method;
5 12 2 c Ljava/lang/Class<*>;
7 9 3 name Ljava/lang/String;
MethodParameters:
Name Flags
proxy
method
private static boolean isSuperInterface(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.lang.Class java.lang.Class top int int java.lang.Class[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
aload 1
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals: java.lang.Class java.lang.Class java.lang.Class int int java.lang.Class[]
StackMap stack:
aload 2
aload 1
invokestatic sun.reflect.misc.ReflectUtil.isSuperInterface:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 6
5: iconst_1
ireturn
end local 2 6: StackMap locals: java.lang.Class java.lang.Class top int int java.lang.Class[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 1
8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 c Ljava/lang/Class<*>;
0 9 1 intf Ljava/lang/Class<*>;
2 6 2 i Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
c
intf
}
SourceFile: "ReflectUtil.java"