public class sun.rmi.rmic.iiop.DirectoryLoader extends java.lang.ClassLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.rmi.rmic.iiop.DirectoryLoader
super_class: java.lang.ClassLoader
{
private java.util.Hashtable cache;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
private java.io.File root;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.ClassLoader.<init>:()V
1: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield sun.rmi.rmic.iiop.DirectoryLoader.cache:Ljava/util/Hashtable;
2: aload 1
ifnull 3
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 4
3: StackMap locals: sun.rmi.rmic.iiop.DirectoryLoader java.io.File
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield sun.rmi.rmic.iiop.DirectoryLoader.root:Ljava/io/File;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/rmi/rmic/iiop/DirectoryLoader;
0 6 1 rootDir Ljava/io/File;
MethodParameters:
Name Flags
rootDir
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.ClassLoader.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/iiop/DirectoryLoader;
public java.lang.Class loadClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual sun.rmi.rmic.iiop.DirectoryLoader.loadClass:(Ljava/lang/String;Z)Ljava/lang/Class;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/rmic/iiop/DirectoryLoader;
0 1 1 className Ljava/lang/String;
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
className
public synchronized java.lang.Class loadClass(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/Class;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.rmi.rmic.iiop.DirectoryLoader.cache:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 3
start local 3 1: aload 3
ifnonnull 13
2: aload 0
aload 1
invokespecial java.lang.ClassLoader.findSystemClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
3: goto 13
StackMap locals: sun.rmi.rmic.iiop.DirectoryLoader java.lang.String int java.lang.Class
StackMap stack: java.lang.ClassNotFoundException
4: pop
5: aload 0
aload 1
invokevirtual sun.rmi.rmic.iiop.DirectoryLoader.getClassFileData:(Ljava/lang/String;)[B
astore 4
start local 4 6: aload 4
ifnonnull 8
7: new java.lang.ClassNotFoundException
dup
invokespecial java.lang.ClassNotFoundException.<init>:()V
athrow
8: StackMap locals: byte[]
StackMap stack:
aload 0
aload 4
iconst_0
aload 4
arraylength
invokevirtual sun.rmi.rmic.iiop.DirectoryLoader.defineClass:([BII)Ljava/lang/Class;
astore 3
9: aload 3
ifnonnull 11
10: new java.lang.ClassFormatError
dup
invokespecial java.lang.ClassFormatError.<init>:()V
athrow
11: StackMap locals:
StackMap stack:
iload 2
ifeq 12
aload 0
aload 3
invokevirtual sun.rmi.rmic.iiop.DirectoryLoader.resolveClass:(Ljava/lang/Class;)V
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.rmic.iiop.DirectoryLoader.cache:Ljava/util/Hashtable;
aload 1
aload 3
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 13: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/rmi/rmic/iiop/DirectoryLoader;
0 14 1 className Ljava/lang/String;
0 14 2 resolve Z
1 14 3 result Ljava/lang/Class;
6 13 4 classData [B
Exception table:
from to target type
2 3 4 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
className
resolve
private byte[] getClassFileData(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: new java.io.File
dup
aload 0
getfield sun.rmi.rmic.iiop.DirectoryLoader.root:Ljava/io/File;
new java.lang.StringBuilder
dup
aload 1
bipush 46
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)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;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 3: new java.io.FileInputStream
dup
aload 4
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3
4: aload 3
invokevirtual java.io.FileInputStream.available:()I
newarray 8
astore 2
5: aload 3
aload 2
invokevirtual java.io.FileInputStream.read:([B)I
pop
6: goto 24
StackMap locals: sun.rmi.rmic.iiop.DirectoryLoader java.lang.String byte[] java.io.FileInputStream java.io.File
StackMap stack: java.lang.ThreadDeath
7: astore 5
start local 5 8: aload 5
athrow
end local 5 9: StackMap locals:
StackMap stack: java.lang.Throwable
pop
10: aload 3
ifnull 30
11: aload 3
invokevirtual java.io.FileInputStream.close:()V
12: goto 30
StackMap locals:
StackMap stack: java.lang.ThreadDeath
13: astore 7
start local 7 14: aload 7
athrow
end local 7 15: StackMap locals:
StackMap stack: java.lang.Throwable
pop
goto 30
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
17: aload 3
ifnull 23
18: aload 3
invokevirtual java.io.FileInputStream.close:()V
19: goto 23
StackMap locals: sun.rmi.rmic.iiop.DirectoryLoader java.lang.String byte[] java.io.FileInputStream java.io.File top java.lang.Throwable
StackMap stack: java.lang.ThreadDeath
20: astore 7
start local 7 21: aload 7
athrow
end local 7 22: StackMap locals:
StackMap stack: java.lang.Throwable
pop
23: StackMap locals:
StackMap stack:
aload 6
athrow
24: StackMap locals: sun.rmi.rmic.iiop.DirectoryLoader java.lang.String byte[] java.io.FileInputStream java.io.File
StackMap stack:
aload 3
ifnull 30
25: aload 3
invokevirtual java.io.FileInputStream.close:()V
26: goto 30
StackMap locals:
StackMap stack: java.lang.ThreadDeath
27: astore 7
start local 7 28: aload 7
athrow
end local 7 29: StackMap locals:
StackMap stack: java.lang.Throwable
pop
30: StackMap locals:
StackMap stack:
aload 2
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/rmi/rmic/iiop/DirectoryLoader;
0 31 1 className Ljava/lang/String;
1 31 2 result [B
2 31 3 stream Ljava/io/FileInputStream;
3 31 4 classFile Ljava/io/File;
8 9 5 death Ljava/lang/ThreadDeath;
14 15 7 death Ljava/lang/ThreadDeath;
21 22 7 death Ljava/lang/ThreadDeath;
28 29 7 death Ljava/lang/ThreadDeath;
Exception table:
from to target type
3 6 7 Class java.lang.ThreadDeath
3 6 9 Class java.lang.Throwable
11 12 13 Class java.lang.ThreadDeath
11 12 15 Class java.lang.Throwable
3 10 16 any
18 19 20 Class java.lang.ThreadDeath
18 19 22 Class java.lang.Throwable
25 26 27 Class java.lang.ThreadDeath
25 26 29 Class java.lang.Throwable
MethodParameters:
Name Flags
className
}
SourceFile: "DirectoryLoader.java"