jdk/test/java/lang/Class/forName/modules/src/m3/p3/NoAccess.java
changeset 43712 5dfd0950317c
parent 38457 3d019217e322
child 44545 83b611b88ac8
equal deleted inserted replaced
43619:dc9102c475f3 43712:5dfd0950317c
    48         ModuleFinder finder = ModuleFinder.of(Paths.get("mods1"), Paths.get("mods2"));
    48         ModuleFinder finder = ModuleFinder.of(Paths.get("mods1"), Paths.get("mods2"));
    49 
    49 
    50         Layer bootLayer = Layer.boot();
    50         Layer bootLayer = Layer.boot();
    51         Configuration parent = bootLayer.configuration();
    51         Configuration parent = bootLayer.configuration();
    52 
    52 
    53         Configuration cf = parent.resolveRequiresAndUses(finder,
    53         Configuration cf = parent.resolveAndBind(finder,
    54                                                          ModuleFinder.of(),
    54                                                  ModuleFinder.of(),
    55                                                          Set.of("m1", "m2"));
    55                                                  Set.of("m1", "m2"));
    56 
    56 
    57         ClassLoader scl = ClassLoader.getSystemClassLoader();
    57         ClassLoader scl = ClassLoader.getSystemClassLoader();
    58         Layer layer = bootLayer.defineModulesWithManyLoaders(cf, scl);
    58         Layer layer = bootLayer.defineModulesWithManyLoaders(cf, scl);
    59 
    59 
    60         if (sm != null) {
    60         if (sm != null) {