< prev index next >

test/java/lang/module/ConfigurationTest.java

Print this page

        

*** 40,49 **** --- 40,50 ---- import java.lang.module.ModuleFinder; import java.lang.module.ResolutionException; import java.lang.module.ResolvedModule; import java.nio.file.Files; import java.nio.file.Path; + import java.nio.file.Paths; import java.util.List; import java.util.Optional; import java.util.Set; import jdk.internal.misc.SharedSecrets;
*** 2115,2125 **** target = new ModuleTarget(targetPlatform); } else { target = null; } String name = descriptor.name(); ! Path dir = Files.createTempDirectory(name); Path mi = dir.resolve("module-info.class"); try (OutputStream out = Files.newOutputStream(mi)) { ModuleInfoWriter.write(descriptor, target, out); } return dir; --- 2116,2126 ---- target = new ModuleTarget(targetPlatform); } else { target = null; } String name = descriptor.name(); ! Path dir = Files.createTempDirectory(Paths.get(""), name); Path mi = dir.resolve("module-info.class"); try (OutputStream out = Files.newOutputStream(mi)) { ModuleInfoWriter.write(descriptor, target, out); } return dir;
< prev index next >