public class jdk.internal.loader.BootLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.loader.BootLoader
super_class: java.lang.Object
{
private static final java.lang.Module UNNAMED_MODULE;
descriptor: Ljava/lang/Module;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String JAVA_HOME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.module.ServicesCatalog SERVICES_CATALOG;
descriptor: Ljdk/internal/module/ServicesCatalog;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.ConcurrentHashMap<?, ?> CLASS_LOADER_VALUE_MAP;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<**>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic jdk.internal.loader.BootLoader.JAVA_HOME:Ljava/lang/String;
1: invokestatic jdk.internal.misc.SharedSecrets.getJavaLangAccess:()Ljdk/internal/misc/JavaLangAccess;
aconst_null
invokeinterface jdk.internal.misc.JavaLangAccess.defineUnnamedModule:(Ljava/lang/ClassLoader;)Ljava/lang/Module;
putstatic jdk.internal.loader.BootLoader.UNNAMED_MODULE:Ljava/lang/Module;
2: getstatic jdk.internal.loader.BootLoader.UNNAMED_MODULE:Ljava/lang/Module;
invokestatic jdk.internal.loader.BootLoader.setBootLoaderUnnamedModule0:(Ljava/lang/Module;)V
3: invokestatic jdk.internal.module.ServicesCatalog.create:()Ljdk/internal/module/ServicesCatalog;
putstatic jdk.internal.loader.BootLoader.SERVICES_CATALOG:Ljdk/internal/module/ServicesCatalog;
4: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
5: putstatic jdk.internal.loader.BootLoader.CLASS_LOADER_VALUE_MAP:Ljava/util/concurrent/ConcurrentHashMap;
6: return
LocalVariableTable:
Start End Slot Name Signature
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/BootLoader;
public static java.lang.Module getUnnamedModule();
descriptor: ()Ljava/lang/Module;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.BootLoader.UNNAMED_MODULE:Ljava/lang/Module;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static jdk.internal.module.ServicesCatalog getServicesCatalog();
descriptor: ()Ljdk/internal/module/ServicesCatalog;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.BootLoader.SERVICES_CATALOG:Ljdk/internal/module/ServicesCatalog;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.concurrent.ConcurrentHashMap<?, ?> getClassLoaderValueMap();
descriptor: ()Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.BootLoader.CLASS_LOADER_VALUE_MAP:Ljava/util/concurrent/ConcurrentHashMap;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/concurrent/ConcurrentHashMap<**>;
public static boolean hasClassPath();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
invokevirtual jdk.internal.loader.BuiltinClassLoader.hasClassPath:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void loadModule(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
invokevirtual jdk.internal.loader.BuiltinClassLoader.loadModule:(Ljava/lang/module/ModuleReference;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 mref Ljava/lang/module/ModuleReference;
MethodParameters:
Name Flags
mref
public static java.lang.Class<?> loadClassOrNull(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
invokevirtual jdk.internal.loader.BuiltinClassLoader.loadClassOrNull:(Ljava/lang/String;)Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
public static java.lang.Class<?> loadClass(java.lang.Module, java.lang.String);
descriptor: (Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.internal.loader.BootLoader.loadClassOrNull:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
aload 0
if_acmpne 3
2: aload 2
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 module Ljava/lang/Module;
0 4 1 name Ljava/lang/String;
1 4 2 c Ljava/lang/Class<*>;
Signature: (Ljava/lang/Module;Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
module
name
public static java.net.URL findResource(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
aload 1
invokevirtual jdk.internal.loader.BuiltinClassLoader.findResource:(Ljava/lang/String;Ljava/lang/String;)Ljava/net/URL;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 mn Ljava/lang/String;
0 1 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mn
name
public static java.io.InputStream findResourceAsStream(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
aload 1
invokevirtual jdk.internal.loader.BuiltinClassLoader.findResourceAsStream:(Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 mn Ljava/lang/String;
0 1 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mn
name
public static java.net.URL findResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
invokevirtual jdk.internal.loader.BuiltinClassLoader.findResource:(Ljava/lang/String;)Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.util.Enumeration<java.net.URL> findResources(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Enumeration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
invokevirtual jdk.internal.loader.BuiltinClassLoader.findResources:(Ljava/lang/String;)Ljava/util/Enumeration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Enumeration<Ljava/net/URL;>;
MethodParameters:
Name Flags
name
public static java.lang.Package definePackage(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Package;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getPackageName:()Ljava/lang/String;
invokestatic jdk.internal.loader.BootLoader.getDefinedPackage:(Ljava/lang/String;)Ljava/lang/Package;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 c Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Package;
MethodParameters:
Name Flags
c
public static java.lang.Package getDefinedPackage(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Package;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
invokevirtual jdk.internal.loader.BuiltinClassLoader.getDefinedPackage:(Ljava/lang/String;)Ljava/lang/Package;
astore 1
start local 1 1: aload 1
ifnonnull 5
2: aload 0
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic jdk.internal.loader.BootLoader.getSystemPackageLocation:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 0
invokevirtual java.lang.String.intern:()Ljava/lang/String;
aload 2
invokestatic jdk.internal.loader.BootLoader$PackageHelper.definePackage:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Package;
astore 1
end local 2 5: StackMap locals: java.lang.Package
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 pn Ljava/lang/String;
1 6 1 pkg Ljava/lang/Package;
3 5 2 location Ljava/lang/String;
MethodParameters:
Name Flags
pn
public static java.util.stream.Stream<java.lang.Package> packages();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.internal.loader.BootLoader.getSystemPackageNames:()[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/loader/BootLoader.lambda$0(Ljava/lang/String;)Ljava/lang/Package; (6)
(Ljava/lang/String;)Ljava/lang/Package;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/stream/Stream<Ljava/lang/Package;>;
private static native java.lang.String[] getSystemPackageNames();
descriptor: ()[Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native java.lang.String getSystemPackageLocation(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
name
private static native void setBootLoaderUnnamedModule0(java.lang.Module);
descriptor: (Ljava/lang/Module;)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
module
private static java.lang.Package lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Package;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic jdk.internal.loader.BootLoader.getDefinedPackage:(Ljava/lang/String;)Ljava/lang/Package;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
}
SourceFile: "BootLoader.java"
NestMembers:
jdk.internal.loader.BootLoader$PackageHelper jdk.internal.loader.BootLoader$PackageHelper$1 jdk.internal.loader.BootLoader$PackageHelper$2
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
PackageHelper = jdk.internal.loader.BootLoader$PackageHelper of jdk.internal.loader.BootLoader