class jdk.internal.loader.BootLoader$PackageHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.loader.BootLoader$PackageHelper
super_class: java.lang.Object
{
private static final jdk.internal.access.JavaLangAccess JLA;
descriptor: Ljdk/internal/access/JavaLangAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.access.SharedSecrets.getJavaLangAccess:()Ljdk/internal/access/JavaLangAccess;
putstatic jdk.internal.loader.BootLoader$PackageHelper.JLA:Ljdk/internal/access/JavaLangAccess;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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$PackageHelper;
static java.lang.Package definePackage(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Package;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.internal.loader.BootLoader$PackageHelper.findModule:(Ljava/lang/String;)Ljava/lang/Module;
astore 2
start local 2 1: aload 2
ifnull 5
2: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
3: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "empty package in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.Module
StackMap stack:
getstatic jdk.internal.loader.BootLoader$PackageHelper.JLA:Ljdk/internal/access/JavaLangAccess;
invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
aload 2
invokeinterface jdk.internal.access.JavaLangAccess.definePackage:(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.internal.loader.BootLoader$PackageHelper.toFileURL:(Ljava/lang/String;)Ljava/net/URL;
astore 3
start local 3 6: aload 3
ifnull 7
aload 1
invokestatic jdk.internal.loader.BootLoader$PackageHelper.getManifest:(Ljava/lang/String;)Ljava/util/jar/Manifest;
goto 8
StackMap locals: java.net.URL
StackMap stack:
7: aconst_null
StackMap locals:
StackMap stack: java.util.jar.Manifest
8: astore 4
start local 4 9: invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
aload 0
aload 4
aload 3
invokevirtual jdk.internal.loader.BuiltinClassLoader.defineOrCheckPackage:(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
0 10 1 location Ljava/lang/String;
1 10 2 module Ljava/lang/Module;
6 10 3 url Ljava/net/URL;
9 10 4 man Ljava/util/jar/Manifest;
MethodParameters:
Name Flags
name
location
private static java.lang.Module findModule(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Module;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
ldc "jrt:/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
2: aload 0
iconst_5
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
3: goto 9
StackMap locals: java.lang.String
StackMap stack:
4: aload 0
ldc "file:/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
5: aload 0
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic java.nio.file.Path.of:(Ljava/net/URI;)Ljava/nio/file/Path;
astore 2
start local 2 6: getstatic jdk.internal.loader.BootLoader.JAVA_HOME:Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "modules"
aastore
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 7: aload 2
aload 3
invokeinterface java.nio.file.Path.startsWith:(Ljava/nio/file/Path;)Z
ifeq 9
8: aload 2
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 1
end local 3 end local 2 9: StackMap locals:
StackMap stack:
aload 1
ifnull 14
10: aload 1
astore 2
start local 2 11: aload 1
invokestatic jdk.internal.module.Modules.findLoadedModule:(Ljava/lang/String;)Ljava/util/Optional;
12: aload 2
invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
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;
jdk/internal/loader/BootLoader$PackageHelper.lambda$0(Ljava/lang/String;)Ljava/lang/InternalError; (6)
()Ljava/lang/InternalError;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.Module
13: areturn
end local 2 14: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 location Ljava/lang/String;
1 15 1 mn Ljava/lang/String;
6 9 2 path Ljava/nio/file/Path;
7 9 3 modulesDir Ljava/nio/file/Path;
11 14 2 name Ljava/lang/String;
MethodParameters:
Name Flags
location
private static java.net.URL toFileURL(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.loader.BootLoader$PackageHelper$1
dup
aload 0
invokespecial jdk.internal.loader.BootLoader$PackageHelper$1.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.URL
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 location Ljava/lang/String;
MethodParameters:
Name Flags
location
private static java.util.jar.Manifest getManifest(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/jar/Manifest;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.loader.BootLoader$PackageHelper$2
dup
aload 0
invokespecial jdk.internal.loader.BootLoader$PackageHelper$2.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.util.jar.Manifest
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 location Ljava/lang/String;
MethodParameters:
Name Flags
location
private static java.lang.InternalError lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/InternalError;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not loaded"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "BootLoader.java"
NestHost: jdk.internal.loader.BootLoader
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
jdk.internal.loader.BootLoader$PackageHelper$1
jdk.internal.loader.BootLoader$PackageHelper$2