class jdk.jshell.execution.DefaultLoaderDelegate implements jdk.jshell.execution.LoaderDelegate
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.execution.DefaultLoaderDelegate
super_class: java.lang.Object
{
private final jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader loader;
descriptor: Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Class<?>> klasses;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Class<*>;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.jshell.execution.DefaultLoaderDelegate.klasses:Ljava/util/Map;
2: aload 0
new jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader
dup
invokespecial jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader.<init>:()V
putfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
3: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/execution/DefaultLoaderDelegate;
public void load(jdk.jshell.spi.ExecutionControl$ClassBytecodes[]);
descriptor: ([Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
arraylength
newarray 4
astore 2
start local 2 1: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate jdk.jshell.spi.ExecutionControl$ClassBytecodes[] boolean[] top int int jdk.jshell.spi.ExecutionControl$ClassBytecodes[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
aload 3
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.name:()Ljava/lang/String;
aload 3
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.bytecodes:()[B
invokevirtual jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader.declare:(Ljava/lang/String;[B)V
end local 3 4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 2
6: iconst_0
istore 3
start local 3 7: goto 14
8: StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate jdk.jshell.spi.ExecutionControl$ClassBytecodes[] boolean[] int
StackMap stack:
aload 1
iload 3
aaload
astore 4
start local 4 9: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
aload 4
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.name:()Ljava/lang/String;
invokevirtual jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 5
start local 5 10: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.klasses:Ljava/util/Map;
aload 4
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.name:()Ljava/lang/String;
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 2
iload 3
iconst_1
bastore
12: aload 5
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
pop
end local 5 end local 4 13: iinc 3 1
StackMap locals:
StackMap stack:
14: iload 3
aload 1
arraylength
if_icmplt 8
end local 3 15: goto 18
StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate jdk.jshell.spi.ExecutionControl$ClassBytecodes[] boolean[]
StackMap stack: java.lang.Throwable
16: astore 3
start local 3 17: new jdk.jshell.spi.ExecutionControl$ClassInstallException
dup
new java.lang.StringBuilder
dup
ldc "load: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial jdk.jshell.spi.ExecutionControl$ClassInstallException.<init>:(Ljava/lang/String;[Z)V
athrow
end local 3 18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/jshell/execution/DefaultLoaderDelegate;
0 19 1 cbcs [Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
1 19 2 loaded [Z
3 4 3 cbc Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
7 15 3 i I
9 13 4 cbc Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
10 13 5 klass Ljava/lang/Class<*>;
17 18 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 15 16 Class java.lang.Throwable
Exceptions:
throws jdk.jshell.spi.ExecutionControl$ClassInstallException, jdk.jshell.spi.ExecutionControl$EngineTerminationException
MethodParameters:
Name Flags
cbcs
public void classesRedefined(jdk.jshell.spi.ExecutionControl$ClassBytecodes[]);
descriptor: ([Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate jdk.jshell.spi.ExecutionControl$ClassBytecodes[] top int int jdk.jshell.spi.ExecutionControl$ClassBytecodes[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
aload 2
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.name:()Ljava/lang/String;
aload 2
invokevirtual jdk.jshell.spi.ExecutionControl$ClassBytecodes.bytecodes:()[B
invokevirtual jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader.declare:(Ljava/lang/String;[B)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/execution/DefaultLoaderDelegate;
0 6 1 cbcs [Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
2 3 2 cbc Ljdk/jshell/spi/ExecutionControl$ClassBytecodes;
MethodParameters:
Name Flags
cbcs
public void addToClasspath(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate java.lang.String top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.loader:Ljdk/jshell/execution/DefaultLoaderDelegate$RemoteClassLoader;
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader.addURL:(Ljava/net/URL;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: goto 8
StackMap locals: jdk.jshell.execution.DefaultLoaderDelegate java.lang.String
StackMap stack: java.lang.Exception
6: astore 2
start local 2 7: new jdk.jshell.spi.ExecutionControl$InternalException
dup
aload 2
invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
invokespecial jdk.jshell.spi.ExecutionControl$InternalException.<init>:(Ljava/lang/String;)V
athrow
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jshell/execution/DefaultLoaderDelegate;
0 9 1 cp Ljava/lang/String;
2 3 2 path Ljava/lang/String;
7 8 2 ex Ljava/lang/Exception;
Exception table:
from to target type
0 5 6 Class java.lang.Exception
Exceptions:
throws jdk.jshell.spi.ExecutionControl$EngineTerminationException, jdk.jshell.spi.ExecutionControl$InternalException
MethodParameters:
Name Flags
cp
public java.lang.Class<?> findClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jshell.execution.DefaultLoaderDelegate.klasses:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.ClassNotFoundException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.Class
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jshell/execution/DefaultLoaderDelegate;
0 4 1 name Ljava/lang/String;
1 4 2 klass Ljava/lang/Class<*>;
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
}
SourceFile: "DefaultLoaderDelegate.java"
NestMembers:
jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader$ClassFile jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader$ResourceURLStreamHandler jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader$ResourceURLStreamHandler$1
InnerClasses:
private RemoteClassLoader = jdk.jshell.execution.DefaultLoaderDelegate$RemoteClassLoader of jdk.jshell.execution.DefaultLoaderDelegate
public final ClassBytecodes = jdk.jshell.spi.ExecutionControl$ClassBytecodes of jdk.jshell.spi.ExecutionControl
public ClassInstallException = jdk.jshell.spi.ExecutionControl$ClassInstallException of jdk.jshell.spi.ExecutionControl
public EngineTerminationException = jdk.jshell.spi.ExecutionControl$EngineTerminationException of jdk.jshell.spi.ExecutionControl
public InternalException = jdk.jshell.spi.ExecutionControl$InternalException of jdk.jshell.spi.ExecutionControl