< prev index next >
test/java/lang/ModuleTests/AnnotationsTest.java
Print this page
*** 26,35 ****
--- 26,36 ----
import java.lang.annotation.Annotation;
import java.lang.module.Configuration;
import java.lang.module.ModuleFinder;
import java.nio.file.Files;
import java.nio.file.Path;
+ import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
*** 72,82 ****
*/
@Test
public void testNamedModule() throws IOException {
// "deprecate" java.xml
! Path dir = Files.createTempDirectory("mods");
deprecateModule("java.xml", true, "9", dir);
// "load" the cloned java.xml
Module module = loadModule(dir, "java.xml");
--- 73,83 ----
*/
@Test
public void testNamedModule() throws IOException {
// "deprecate" java.xml
! Path dir = Files.createTempDirectory(Paths.get(""), "mods");
deprecateModule("java.xml", true, "9", dir);
// "load" the cloned java.xml
Module module = loadModule(dir, "java.xml");
< prev index next >