< prev index next >

test/java/lang/ModuleTests/AnnotationsTest.java

Print this page

        

@@ -26,10 +26,11 @@
 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,11 +73,11 @@
      */
     @Test
     public void testNamedModule() throws IOException {
 
         // "deprecate" java.xml
-        Path dir = Files.createTempDirectory("mods");
+        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 >