equal
deleted
inserted
replaced
36 * @test |
36 * @test |
37 * @library /lib/testlibrary |
37 * @library /lib/testlibrary |
38 * @modules jdk.compiler |
38 * @modules jdk.compiler |
39 * @build AccessTest CompilerUtils jdk.testlibrary.* |
39 * @build AccessTest CompilerUtils jdk.testlibrary.* |
40 * @run testng AccessTest |
40 * @run testng AccessTest |
41 * @summary Driver for test that checks access to public members in exported |
41 * @summary Driver for test that checks access to access to types in |
42 * and non-exported packages. |
42 * exported and non-exported packages. |
43 */ |
43 */ |
44 |
44 |
45 @Test |
45 @Test |
46 public class AccessTest { |
46 public class AccessTest { |
47 |
47 |
72 */ |
72 */ |
73 public void runTest() throws Exception { |
73 public void runTest() throws Exception { |
74 int exitValue |
74 int exitValue |
75 = executeTestJava("--module-path", MODS_DIR.toString(), |
75 = executeTestJava("--module-path", MODS_DIR.toString(), |
76 "--add-modules", "target", |
76 "--add-modules", "target", |
|
77 "-Dsun.reflect.enableStrictMode=true", |
77 "-m", "test/test.Main") |
78 "-m", "test/test.Main") |
78 .outputTo(System.out) |
79 .outputTo(System.out) |
79 .errorTo(System.out) |
80 .errorTo(System.out) |
80 .getExitValue(); |
81 .getExitValue(); |
81 |
82 |