src/java.base/share/classes/jdk/internal/loader/BootLoader.java
changeset 50817 fa1e04811ff6
parent 50744 6c306d54366d
child 52427 3c6aa484536c
equal deleted inserted replaced
50816:a73848f8d0ad 50817:fa1e04811ff6
    44 
    44 
    45 import jdk.internal.misc.JavaLangAccess;
    45 import jdk.internal.misc.JavaLangAccess;
    46 import jdk.internal.misc.SharedSecrets;
    46 import jdk.internal.misc.SharedSecrets;
    47 import jdk.internal.module.Modules;
    47 import jdk.internal.module.Modules;
    48 import jdk.internal.module.ServicesCatalog;
    48 import jdk.internal.module.ServicesCatalog;
       
    49 import jdk.internal.util.StaticProperty;
    49 
    50 
    50 /**
    51 /**
    51  * Find resources and packages in modules defined to the boot class loader or
    52  * Find resources and packages in modules defined to the boot class loader or
    52  * resources and packages on the "boot class path" specified via -Xbootclasspath/a.
    53  * resources and packages on the "boot class path" specified via -Xbootclasspath/a.
    53  */
    54  */
    55 public class BootLoader {
    56 public class BootLoader {
    56     private BootLoader() { }
    57     private BootLoader() { }
    57 
    58 
    58     // The unnamed module for the boot loader
    59     // The unnamed module for the boot loader
    59     private static final Module UNNAMED_MODULE;
    60     private static final Module UNNAMED_MODULE;
    60     private static final String JAVA_HOME = System.getProperty("java.home");
    61     private static final String JAVA_HOME = StaticProperty.javaHome();
    61 
    62 
    62     static {
    63     static {
    63         UNNAMED_MODULE = SharedSecrets.getJavaLangAccess().defineUnnamedModule(null);
    64         UNNAMED_MODULE = SharedSecrets.getJavaLangAccess().defineUnnamedModule(null);
    64         setBootLoaderUnnamedModule0(UNNAMED_MODULE);
    65         setBootLoaderUnnamedModule0(UNNAMED_MODULE);
    65     }
    66     }