jdk/test/tools/jlink/plugins/SystemModuleDescriptors/src/m5/p5/Main.java
changeset 44545 83b611b88ac8
parent 44000 1c98f4d91595
equal deleted inserted replaced
44480:2c33418a6d57 44545:83b611b88ac8
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 package p5;
    24 package p5;
    25 
    25 
    26 import java.lang.reflect.Layer;
       
    27 import p3.Foo;
    26 import p3.Foo;
    28 import p3.Lib;
    27 import p3.Lib;
    29 
    28 
    30 /**
    29 /**
    31  * This test verifies jlink support of requires static.
    30  * This test verifies jlink support of requires static.
    32  */
    31  */
    33 public class Main {
    32 public class Main {
    34     public static void main(String... args) {
    33     public static void main(String... args) {
    35         boolean libPresent = Layer.boot().findModule("m3").isPresent();
    34         boolean libPresent = ModuleLayer.boot().findModule("m3").isPresent();
    36         if (LibHelper.libClassFound != libPresent) {
    35         if (LibHelper.libClassFound != libPresent) {
    37             throw new RuntimeException("Expected module m3 not in the boot layer");
    36             throw new RuntimeException("Expected module m3 not in the boot layer");
    38         }
    37         }
    39 
    38 
    40         if (libPresent) {
    39         if (libPresent) {