equal
deleted
inserted
replaced
87 ModuleFinder finder = ModuleLibrary.of(descriptor_m1, descriptor_m2); |
87 ModuleFinder finder = ModuleLibrary.of(descriptor_m1, descriptor_m2); |
88 |
88 |
89 // Resolves "m1" |
89 // Resolves "m1" |
90 Configuration cf = Layer.boot() |
90 Configuration cf = Layer.boot() |
91 .configuration() |
91 .configuration() |
92 .resolveRequires(finder, ModuleFinder.empty(), Set.of("m1")); |
92 .resolveRequires(finder, ModuleFinder.of(), Set.of("m1")); |
93 |
93 |
94 // map each module to the same class loader for this test |
94 // map each module to the same class loader for this test |
95 Map<String, ClassLoader> map = new HashMap<>(); |
95 Map<String, ClassLoader> map = new HashMap<>(); |
96 map.put("m1", MySameClassLoader.loader1); |
96 map.put("m1", MySameClassLoader.loader1); |
97 map.put("m2", MySameClassLoader.loader1); |
97 map.put("m2", MySameClassLoader.loader1); |