equal
deleted
inserted
replaced
90 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
90 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
91 |
91 |
92 // Resolves "m1" |
92 // Resolves "m1" |
93 Configuration cf = Layer.boot() |
93 Configuration cf = Layer.boot() |
94 .configuration() |
94 .configuration() |
95 .resolveRequires(finder, ModuleFinder.empty(), Set.of("m1")); |
95 .resolveRequires(finder, ModuleFinder.of(), Set.of("m1")); |
96 |
96 |
97 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
97 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
98 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
98 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
99 |
99 |
100 // map module m1 to class loader. |
100 // map module m1 to class loader. |
139 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
139 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
140 |
140 |
141 // Resolves "m1" |
141 // Resolves "m1" |
142 Configuration cf = Layer.boot() |
142 Configuration cf = Layer.boot() |
143 .configuration() |
143 .configuration() |
144 .resolveRequires(finder, ModuleFinder.empty(), Set.of("m1")); |
144 .resolveRequires(finder, ModuleFinder.of(), Set.of("m1")); |
145 |
145 |
146 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
146 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
147 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
147 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
148 |
148 |
149 // map module m1 to class loader. |
149 // map module m1 to class loader. |
188 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
188 ModuleFinder finder = ModuleLibrary.of(descriptor_m1); |
189 |
189 |
190 // Resolves "m1" |
190 // Resolves "m1" |
191 Configuration cf = Layer.boot() |
191 Configuration cf = Layer.boot() |
192 .configuration() |
192 .configuration() |
193 .resolveRequires(finder, ModuleFinder.empty(), Set.of("m1")); |
193 .resolveRequires(finder, ModuleFinder.of(), Set.of("m1")); |
194 |
194 |
195 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
195 MyDiffClassLoader.loader1 = new MyDiffClassLoader(); |
196 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
196 MyDiffClassLoader.loader2 = new MyDiffClassLoader(); |
197 |
197 |
198 // map module m1 to class loader. |
198 // map module m1 to class loader. |