25 * @test |
25 * @test |
26 * @bug 8197532 |
26 * @bug 8197532 |
27 * @modules jdk.compiler |
27 * @modules jdk.compiler |
28 * jdk.jlink |
28 * jdk.jlink |
29 * jdk.zipfs |
29 * jdk.zipfs |
30 * @library src /lib/testlibrary |
30 * @library src /test/lib |
31 * @build java.json/* |
31 * @build java.json/* |
32 * @run main DefaultModules |
32 * @run main DefaultModules |
33 * @summary Test that all modules that export an API are in the set of modules |
33 * @summary Test that all modules that export an API are in the set of modules |
34 * resolved when compiling or running code on the class path |
34 * resolved when compiling or running code on the class path |
35 */ |
35 */ |
36 |
36 |
37 import java.io.PrintStream; |
37 import java.io.PrintStream; |
38 import java.nio.file.Files; |
38 import java.nio.file.Files; |
39 import java.nio.file.Path; |
39 import java.nio.file.Path; |
40 import java.lang.module.ModuleDescriptor; |
|
41 import java.lang.module.ModuleFinder; |
|
42 import java.lang.module.ModuleReference; |
|
43 import java.util.spi.ToolProvider; |
40 import java.util.spi.ToolProvider; |
44 |
41 |
45 import jdk.testlibrary.ProcessTools; |
42 import jdk.test.lib.process.ProcessTools; |
46 import jdk.testlibrary.OutputAnalyzer; |
|
47 |
43 |
48 /** |
44 /** |
49 * This test compiles and runs the following tests on the class path: |
45 * This test compiles and runs the following tests on the class path: |
50 * |
46 * |
51 * TestRootModules.java.java - tests that every module that exports an API |
47 * TestRootModules.java.java - tests that every module that exports an API |