public class sun.invoke.anon.AnonymousClassLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.invoke.anon.AnonymousClassLoader
super_class: java.lang.Object
{
final java.lang.Class<?> hostClass;
descriptor: Ljava/lang/Class;
flags: (0x0010) ACC_FINAL
Signature: Ljava/lang/Class<*>;
private static int fakeNameCounter;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.reflect.Method defineAnonymousClass;
descriptor: Ljava/lang/reflect/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=2, args_size=0
0: ldc 99999
putstatic sun.invoke.anon.AnonymousClassLoader.fakeNameCounter:I
1: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic sun.invoke.anon.AnonymousClassLoader.unsafe:Lsun/misc/Unsafe;
2: aconst_null
astore 0
start local 0 3: getstatic sun.invoke.anon.AnonymousClassLoader.unsafe:Lsun/misc/Unsafe;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 4: aload 1
ldc "defineAnonymousClass"
iconst_3
anewarray java.lang.Class
dup
iconst_0
5: ldc Ljava/lang/Class;
aastore
dup
iconst_1
6: ldc [B
aastore
dup
iconst_2
7: ldc [Ljava/lang/Object;
aastore
8: invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 0
9: goto 12
StackMap locals: java.lang.reflect.Method java.lang.Class
StackMap stack: java.lang.Exception
10: pop
11: aconst_null
astore 0
12: StackMap locals:
StackMap stack:
aload 0
putstatic sun.invoke.anon.AnonymousClassLoader.defineAnonymousClass:Ljava/lang/reflect/Method;
end local 1 end local 0 13: return
LocalVariableTable:
Start End Slot Name Signature
3 13 0 dac Ljava/lang/reflect/Method;
4 13 1 unsafeClass Ljava/lang/Class<+Lsun/misc/Unsafe;>;
Exception table:
from to target type
4 9 10 Class java.lang.Exception
private void <init>(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.invoke.anon.AnonymousClassLoader.hostClass:Ljava/lang/Class;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/invoke/anon/AnonymousClassLoader;
0 3 1 hostClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
hostClass
public static sun.invoke.anon.AnonymousClassLoader make(sun.misc.Unsafe, java.lang.Class<?>);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Class;)Lsun/invoke/anon/AnonymousClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new sun.invoke.anon.AnonymousClassLoader
dup
aload 1
invokespecial sun.invoke.anon.AnonymousClassLoader.<init>:(Ljava/lang/Class;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 unsafe Lsun/misc/Unsafe;
0 2 1 hostClass Ljava/lang/Class<*>;
Signature: (Lsun/misc/Unsafe;Ljava/lang/Class<*>;)Lsun/invoke/anon/AnonymousClassLoader;
MethodParameters:
Name Flags
unsafe
hostClass
public java.lang.Class<?> loadClass(byte[]);
descriptor: ([B)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.invoke.anon.AnonymousClassLoader.defineAnonymousClass:Ljava/lang/reflect/Method;
ifnonnull 5
1: aload 0
new sun.invoke.anon.ConstantPoolParser
dup
aload 1
invokespecial sun.invoke.anon.ConstantPoolParser.<init>:([B)V
invokevirtual sun.invoke.anon.ConstantPoolParser.createPatch:()Lsun/invoke/anon/ConstantPoolPatch;
invokevirtual sun.invoke.anon.AnonymousClassLoader.fakeLoadClass:(Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class;
2: areturn
3: StackMap locals:
StackMap stack: sun.invoke.anon.InvalidConstantPoolFormatException
astore 2
start local 2 4: new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
aload 0
aload 1
aconst_null
invokevirtual sun.invoke.anon.AnonymousClassLoader.loadClass:([B[Ljava/lang/Object;)Ljava/lang/Class;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/invoke/anon/AnonymousClassLoader;
0 6 1 classFile [B
4 5 2 ee Lsun/invoke/anon/InvalidConstantPoolFormatException;
Exception table:
from to target type
1 2 3 Class sun.invoke.anon.InvalidConstantPoolFormatException
Signature: ([B)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
classFile
public java.lang.Class<?> loadClass(sun.invoke.anon.ConstantPoolPatch);
descriptor: (Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: getstatic sun.invoke.anon.AnonymousClassLoader.defineAnonymousClass:Ljava/lang/reflect/Method;
ifnonnull 2
1: aload 0
aload 1
invokevirtual sun.invoke.anon.AnonymousClassLoader.fakeLoadClass:(Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getfield sun.invoke.anon.ConstantPoolPatch.patchArray:[Ljava/lang/Object;
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 15
5: StackMap locals: java.lang.Object[] int
StackMap stack:
aload 2
iload 3
aaload
astore 4
start local 4 6: aload 4
ifnull 14
7: aload 1
iload 3
invokevirtual sun.invoke.anon.ConstantPoolPatch.getTag:(I)B
istore 5
start local 5 8: iload 5
tableswitch { // 7 - 12
7: 9
8: 14
9: 14
10: 14
11: 14
12: 14
default: 14
}
9: StackMap locals: java.lang.Object int
StackMap stack:
aload 4
instanceof java.lang.String
ifeq 14
10: aload 2
aload 1
getfield sun.invoke.anon.ConstantPoolPatch.patchArray:[Ljava/lang/Object;
if_acmpne 12
11: aload 2
invokevirtual java.lang.Object[].clone:()Ljava/lang/Object;
checkcast java.lang.Object[]
astore 2
12: StackMap locals:
StackMap stack:
aload 2
iload 3
aload 4
checkcast java.lang.String
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
aastore
13: goto 14
end local 5 end local 4 14: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
15: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 16: aload 0
aload 1
getfield sun.invoke.anon.ConstantPoolPatch.outer:Lsun/invoke/anon/ConstantPoolParser;
getfield sun.invoke.anon.ConstantPoolParser.classFile:[B
aload 1
getfield sun.invoke.anon.ConstantPoolPatch.patchArray:[Ljava/lang/Object;
invokevirtual sun.invoke.anon.AnonymousClassLoader.loadClass:([B[Ljava/lang/Object;)Ljava/lang/Class;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/invoke/anon/AnonymousClassLoader;
0 17 1 classPatch Lsun/invoke/anon/ConstantPoolPatch;
3 17 2 patches [Ljava/lang/Object;
4 16 3 i I
6 14 4 value Ljava/lang/Object;
8 14 5 tag B
Signature: (Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
classPatch
private java.lang.Class<?> loadClass(byte[], []);
descriptor: ([B[Ljava/lang/Object;)Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.invoke.anon.AnonymousClassLoader.defineAnonymousClass:Ljava/lang/reflect/Method;
getstatic sun.invoke.anon.AnonymousClassLoader.unsafe:Lsun/misc/Unsafe;
iconst_3
anewarray java.lang.Object
dup
iconst_0
1: aload 0
getfield sun.invoke.anon.AnonymousClassLoader.hostClass:Ljava/lang/Class;
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 2
aastore
2: invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
3: checkcast java.lang.Class
4: areturn
5: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 6: aload 3
invokestatic sun.invoke.anon.AnonymousClassLoader.throwReflectedException:(Ljava/lang/Exception;)V
7: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "error loading into "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.invoke.anon.AnonymousClassLoader.hostClass:Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/invoke/anon/AnonymousClassLoader;
0 8 1 classFile [B
0 8 2 patchArray [Ljava/lang/Object;
6 8 3 ex Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
Signature: ([B[Ljava/lang/Object;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
classFile
patchArray
private static void throwReflectedException(java.lang.Exception);
descriptor: (Ljava/lang/Exception;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.lang.reflect.InvocationTargetException
ifeq 5
1: aload 0
checkcast java.lang.reflect.InvocationTargetException
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
astore 1
start local 1 2: aload 1
instanceof java.lang.Error
ifeq 4
3: aload 1
checkcast java.lang.Error
athrow
4: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
checkcast java.lang.Exception
astore 0
end local 1 5: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.RuntimeException
ifeq 7
6: aload 0
checkcast java.lang.RuntimeException
athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 ex Ljava/lang/Exception;
2 5 1 tex Ljava/lang/Throwable;
MethodParameters:
Name Flags
ex
private java.lang.Class<?> fakeLoadClass(sun.invoke.anon.ConstantPoolPatch);
descriptor: (Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "NYI"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/invoke/anon/AnonymousClassLoader;
0 1 1 classPatch Lsun/invoke/anon/ConstantPoolPatch;
Signature: (Lsun/invoke/anon/ConstantPoolPatch;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
classPatch
private static void noJVMSupport();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.UnsupportedOperationException
dup
ldc "no JVM support for anonymous classes"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
private static native java.lang.Class<?> loadClassInternal(java.lang.Class<?>, byte[], []);
descriptor: (Ljava/lang/Class;[B[Ljava/lang/Object;)Ljava/lang/Class;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Signature: (Ljava/lang/Class<*>;[B[Ljava/lang/Object;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
hostClass
classFile
patchArray
public static byte[] readClassFile(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, 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: aload 0
new java.lang.StringBuilder
dup
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 3
start local 3 3: aload 3
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
astore 4
start local 4 4: aload 4
invokevirtual java.net.URLConnection.getContentLength:()I
istore 5
start local 5 5: iload 5
ifge 7
6: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "invalid content length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.Class java.lang.String int java.net.URL java.net.URLConnection int
StackMap stack:
aload 4
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
iload 5
iconst_1
invokestatic sun.misc.IOUtils.readFully:(Ljava/io/InputStream;IZ)[B
areturn
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 8 0 templateClass Ljava/lang/Class<*>;
1 8 1 templateName Ljava/lang/String;
2 8 2 lastDot I
3 8 3 url Ljava/net/URL;
4 8 4 connection Ljava/net/URLConnection;
5 8 5 contentLength I
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/Class<*>;)[B
MethodParameters:
Name Flags
templateClass
}
SourceFile: "AnonymousClassLoader.java"