< prev index next >

test/java/lang/module/ModuleReader/ModuleReaderTest.java

Print this page

        

*** 22,32 **** */ /** * @test * @library /lib/testlibrary ! * @modules java.base/jdk.internal.misc * jdk.compiler * @build ModuleReaderTest CompilerUtils JarUtils * @run testng ModuleReaderTest * @summary Basic tests for java.lang.module.ModuleReader */ --- 22,32 ---- */ /** * @test * @library /lib/testlibrary ! * @modules java.base/jdk.internal.module * jdk.compiler * @build ModuleReaderTest CompilerUtils JarUtils * @run testng ModuleReaderTest * @summary Basic tests for java.lang.module.ModuleReader */
*** 51,61 **** import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import java.util.spi.ToolProvider; ! import jdk.internal.misc.SharedSecrets; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import static org.testng.Assert.*; --- 51,61 ---- import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import java.util.spi.ToolProvider; ! import jdk.internal.module.ModulePath; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import static org.testng.Assert.*;
*** 214,226 **** * The test module is found on the given module path. Open a ModuleReader * to the test module and test the reader. */ void test(Path mp) throws IOException { ! ModuleFinder finder = SharedSecrets.getJavaLangModuleAccess() ! .newModulePath(Runtime.version(), true, mp); ! ModuleReference mref = finder.find(TEST_MODULE).get(); ModuleReader reader = mref.open(); try (reader) { --- 214,224 ---- * The test module is found on the given module path. Open a ModuleReader * to the test module and test the reader. */ void test(Path mp) throws IOException { ! ModuleFinder finder = new ModulePath(Runtime.version(), true, mp); ModuleReference mref = finder.find(TEST_MODULE).get(); ModuleReader reader = mref.open(); try (reader) {
< prev index next >