equal
deleted
inserted
replaced
26 /* |
26 /* |
27 * @test |
27 * @test |
28 * @summary Test that if module m1 can read module m2, but package p2 in m2 is not |
28 * @summary Test that if module m1 can read module m2, but package p2 in m2 is not |
29 * exported, then class p1.c1 in m1 can not read p2.c2 in m2. |
29 * exported, then class p1.c1 in m1 can not read p2.c2 in m2. |
30 * @modules java.base/jdk.internal.misc |
30 * @modules java.base/jdk.internal.misc |
31 * @library /testlibrary /test/lib |
31 * @library /test/lib |
32 * @compile myloaders/MyDiffClassLoader.java |
32 * @compile myloaders/MyDiffClassLoader.java |
33 * @compile p2/c2.java |
33 * @compile p2/c2.java |
34 * @compile p1/c1.java |
34 * @compile p1/c1.java |
35 * @build DiffCL_PkgNotExp |
|
36 * @run main/othervm -Xbootclasspath/a:. DiffCL_PkgNotExp |
35 * @run main/othervm -Xbootclasspath/a:. DiffCL_PkgNotExp |
37 */ |
36 */ |
38 |
37 |
39 import static jdk.test.lib.Asserts.*; |
38 import static jdk.test.lib.Asserts.*; |
40 |
39 |