public class jdk.internal.loader.ClassLoaders
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.loader.ClassLoaders
super_class: java.lang.Object
{
private static final jdk.internal.misc.JavaLangAccess JLA;
descriptor: Ljdk/internal/misc/JavaLangAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.loader.ClassLoaders$BootClassLoader BOOT_LOADER;
descriptor: Ljdk/internal/loader/ClassLoaders$BootClassLoader;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.loader.ClassLoaders$PlatformClassLoader PLATFORM_LOADER;
descriptor: Ljdk/internal/loader/ClassLoaders$PlatformClassLoader;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.loader.ClassLoaders$AppClassLoader APP_LOADER;
descriptor: Ljdk/internal/loader/ClassLoaders$AppClassLoader;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=0
0: invokestatic jdk.internal.misc.SharedSecrets.getJavaLangAccess:()Ljdk/internal/misc/JavaLangAccess;
putstatic jdk.internal.loader.ClassLoaders.JLA:Ljdk/internal/misc/JavaLangAccess;
1: aconst_null
astore 0
start local 0 2: ldc "jdk.boot.class.path.append"
invokestatic jdk.internal.misc.VM.getSavedProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 3: aload 1
ifnull 5
aload 1
invokevirtual java.lang.String.length:()I
ifle 5
4: aload 1
invokestatic jdk.internal.loader.ClassLoaders.toURLClassPath:(Ljava/lang/String;)Ljdk/internal/loader/URLClassPath;
astore 0
5: StackMap locals: jdk.internal.loader.URLClassPath java.lang.String
StackMap stack:
new jdk.internal.loader.URLClassPath
dup
iconst_0
anewarray java.net.URL
invokespecial jdk.internal.loader.URLClassPath.<init>:([Ljava/net/URL;)V
astore 2
start local 2 6: ldc "jdk.module.main"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 7: ldc "java.class.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 8: aload 4
ifnonnull 10
9: ldc ""
astore 4
10: StackMap locals: jdk.internal.loader.URLClassPath java.lang.String java.lang.String
StackMap stack:
aload 3
ifnull 11
aload 4
invokevirtual java.lang.String.length:()I
ifle 12
11: StackMap locals:
StackMap stack:
aload 4
aload 2
invokestatic jdk.internal.loader.ClassLoaders.addClassPathToUCP:(Ljava/lang/String;Ljdk/internal/loader/URLClassPath;)V
12: StackMap locals:
StackMap stack:
new jdk.internal.loader.ClassLoaders$BootClassLoader
dup
aload 0
invokespecial jdk.internal.loader.ClassLoaders$BootClassLoader.<init>:(Ljdk/internal/loader/URLClassPath;)V
putstatic jdk.internal.loader.ClassLoaders.BOOT_LOADER:Ljdk/internal/loader/ClassLoaders$BootClassLoader;
13: new jdk.internal.loader.ClassLoaders$PlatformClassLoader
dup
getstatic jdk.internal.loader.ClassLoaders.BOOT_LOADER:Ljdk/internal/loader/ClassLoaders$BootClassLoader;
invokespecial jdk.internal.loader.ClassLoaders$PlatformClassLoader.<init>:(Ljdk/internal/loader/ClassLoaders$BootClassLoader;)V
putstatic jdk.internal.loader.ClassLoaders.PLATFORM_LOADER:Ljdk/internal/loader/ClassLoaders$PlatformClassLoader;
14: new jdk.internal.loader.ClassLoaders$AppClassLoader
dup
getstatic jdk.internal.loader.ClassLoaders.PLATFORM_LOADER:Ljdk/internal/loader/ClassLoaders$PlatformClassLoader;
aload 2
invokespecial jdk.internal.loader.ClassLoaders$AppClassLoader.<init>:(Ljdk/internal/loader/ClassLoaders$PlatformClassLoader;Ljdk/internal/loader/URLClassPath;)V
putstatic jdk.internal.loader.ClassLoaders.APP_LOADER:Ljdk/internal/loader/ClassLoaders$AppClassLoader;
end local 4 end local 3 end local 2 end local 1 end local 0 15: return
LocalVariableTable:
Start End Slot Name Signature
2 15 0 bcp Ljdk/internal/loader/URLClassPath;
3 15 1 s Ljava/lang/String;
6 15 2 ucp Ljdk/internal/loader/URLClassPath;
7 15 3 mainMid Ljava/lang/String;
8 15 4 cp Ljava/lang/String;
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 Ljdk/internal/loader/ClassLoaders;
static jdk.internal.loader.BuiltinClassLoader bootLoader();
descriptor: ()Ljdk/internal/loader/BuiltinClassLoader;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.ClassLoaders.BOOT_LOADER:Ljdk/internal/loader/ClassLoaders$BootClassLoader;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.ClassLoader platformClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.ClassLoaders.PLATFORM_LOADER:Ljdk/internal/loader/ClassLoaders$PlatformClassLoader;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.ClassLoader appClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.ClassLoaders.APP_LOADER:Ljdk/internal/loader/ClassLoaders$AppClassLoader;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static jdk.internal.loader.URLClassPath toURLClassPath(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/loader/URLClassPath;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.internal.loader.URLClassPath
dup
iconst_0
anewarray java.net.URL
invokespecial jdk.internal.loader.URLClassPath.<init>:([Ljava/net/URL;)V
astore 1
start local 1 1: aload 0
aload 1
invokestatic jdk.internal.loader.ClassLoaders.addClassPathToUCP:(Ljava/lang/String;Ljdk/internal/loader/URLClassPath;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 cp Ljava/lang/String;
1 3 1 ucp Ljdk/internal/loader/URLClassPath;
MethodParameters:
Name Flags
cp
private static void addClassPathToUCP(java.lang.String, jdk.internal.loader.URLClassPath);
descriptor: (Ljava/lang/String;Ljdk/internal/loader/URLClassPath;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
start local 3 2: StackMap locals: int int
StackMap stack:
aload 0
iload 2
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic jdk.internal.loader.ClassLoaders.toFileURL:(Ljava/lang/String;)Ljava/net/URL;
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 1
aload 4
invokevirtual jdk.internal.loader.URLClassPath.addURL:(Ljava/net/URL;)V
5: StackMap locals: java.net.URL
StackMap stack:
iload 3
iconst_1
iadd
istore 2
end local 4 end local 3 6: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.pathSeparator:Ljava/lang/String;
iload 2
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;I)I
dup
istore 3
start local 3 7: iconst_m1
if_icmpne 2
8: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic jdk.internal.loader.ClassLoaders.toFileURL:(Ljava/lang/String;)Ljava/net/URL;
astore 4
start local 4 9: aload 4
ifnull 11
10: aload 1
aload 4
invokevirtual jdk.internal.loader.URLClassPath.addURL:(Ljava/net/URL;)V
11: StackMap locals: int java.net.URL
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 cp Ljava/lang/String;
0 12 1 ucp Ljdk/internal/loader/URLClassPath;
1 12 2 off I
2 6 3 next I
7 12 3 next I
3 6 4 url Ljava/net/URL;
9 12 4 url Ljava/net/URL;
MethodParameters:
Name Flags
cp
ucp
private static java.net.URL toFileURL(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.nio.file.InvalidPathException
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
s
}
SourceFile: "ClassLoaders.java"
NestMembers:
jdk.internal.loader.ClassLoaders$AppClassLoader jdk.internal.loader.ClassLoaders$BootClassLoader jdk.internal.loader.ClassLoaders$PlatformClassLoader
InnerClasses:
private AppClassLoader = jdk.internal.loader.ClassLoaders$AppClassLoader of jdk.internal.loader.ClassLoaders
private BootClassLoader = jdk.internal.loader.ClassLoaders$BootClassLoader of jdk.internal.loader.ClassLoaders
private PlatformClassLoader = jdk.internal.loader.ClassLoaders$PlatformClassLoader of jdk.internal.loader.ClassLoaders