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: .line 217
            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 // jdk.internal.loader.BootLoader$PackageHelper this
         0: .line 216
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.internal.loader.BootLoader$PackageHelper this
      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 // java.lang.String name
        start local 1 // java.lang.String location
         0: .line 236
            aload 1 /* location */
            invokestatic jdk.internal.loader.BootLoader$PackageHelper.findModule:(Ljava/lang/String;)Ljava/lang/Module;
            astore 2 /* module */
        start local 2 // java.lang.Module module
         1: .line 237
            aload 2 /* module */
            ifnull 5
         2: .line 239
            aload 0 /* name */
            invokevirtual java.lang.String.isEmpty:()Z
            ifeq 4
         3: .line 240
            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 /* location */
            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: .line 241
      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 /* name */
            aload 2 /* module */
            invokeinterface jdk.internal.access.JavaLangAccess.definePackage:(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;
            areturn
         5: .line 245
      StackMap locals:
      StackMap stack:
            aload 1 /* location */
            invokestatic jdk.internal.loader.BootLoader$PackageHelper.toFileURL:(Ljava/lang/String;)Ljava/net/URL;
            astore 3 /* url */
        start local 3 // java.net.URL url
         6: .line 246
            aload 3 /* url */
            ifnull 7
            aload 1 /* location */
            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 /* man */
        start local 4 // java.util.jar.Manifest man
         9: .line 248
            invokestatic jdk.internal.loader.ClassLoaders.bootLoader:()Ljdk/internal/loader/BuiltinClassLoader;
            aload 0 /* name */
            aload 4 /* man */
            aload 3 /* url */
            invokevirtual jdk.internal.loader.BuiltinClassLoader.defineOrCheckPackage:(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;
            areturn
        end local 4 // java.util.jar.Manifest man
        end local 3 // java.net.URL url
        end local 2 // java.lang.Module module
        end local 1 // java.lang.String location
        end local 0 // java.lang.String name
      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 // java.lang.String location
         0: .line 257
            aconst_null
            astore 1 /* mn */
        start local 1 // java.lang.String mn
         1: .line 258
            aload 0 /* location */
            ldc "jrt:/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 4
         2: .line 260
            aload 0 /* location */
            iconst_5
            aload 0 /* location */
            invokevirtual java.lang.String.length:()I
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 1 /* mn */
         3: .line 261
            goto 9
      StackMap locals: java.lang.String
      StackMap stack:
         4: aload 0 /* location */
            ldc "file:/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 9
         5: .line 263
            aload 0 /* location */
            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 /* path */
        start local 2 // java.nio.file.Path path
         6: .line 264
            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 /* modulesDir */
        start local 3 // java.nio.file.Path modulesDir
         7: .line 265
            aload 2 /* path */
            aload 3 /* modulesDir */
            invokeinterface java.nio.file.Path.startsWith:(Ljava/nio/file/Path;)Z
            ifeq 9
         8: .line 266
            aload 2 /* path */
            invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
            invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
            astore 1 /* mn */
        end local 3 // java.nio.file.Path modulesDir
        end local 2 // java.nio.file.Path path
         9: .line 273
      StackMap locals:
      StackMap stack:
            aload 1 /* mn */
            ifnull 14
        10: .line 274
            aload 1 /* mn */
            astore 2 /* name */
        start local 2 // java.lang.String name
        11: .line 275
            aload 1 /* mn */
            invokestatic jdk.internal.module.Modules.findLoadedModule:(Ljava/lang/String;)Ljava/util/Optional;
        12: .line 276
            aload 2 /* name */
            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: .line 275
            areturn
        end local 2 // java.lang.String name
        14: .line 278
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 1 // java.lang.String mn
        end local 0 // java.lang.String location
      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 // java.lang.String location
         0: .line 286
            new jdk.internal.loader.BootLoader$PackageHelper$1
            dup
            aload 0 /* location */
            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 // java.lang.String location
      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 // java.lang.String location
         0: .line 304
            new jdk.internal.loader.BootLoader$PackageHelper$2
            dup
            aload 0 /* location */
            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 // java.lang.String location
      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: .line 276
            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