equal
deleted
inserted
replaced
26 /* |
26 /* |
27 * @test |
27 * @test |
28 * @summary Test that if module m1 can not read module m2, then class p1.c1 |
28 * @summary Test that if module m1 can not read module m2, then class p1.c1 |
29 * in module m1 can not access p2.c2 in module m2. |
29 * in module m1 can not access p2.c2 in module 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/MySameClassLoader.java |
32 * @compile myloaders/MySameClassLoader.java |
33 * @compile p2/c2.java |
33 * @compile p2/c2.java |
34 * @compile p1/c1.java |
34 * @compile p1/c1.java |
35 * @build CheckRead |
|
36 * @run main/othervm -Xbootclasspath/a:. CheckRead |
35 * @run main/othervm -Xbootclasspath/a:. CheckRead |
37 */ |
36 */ |
38 |
37 |
39 import static jdk.test.lib.Asserts.*; |
38 import static jdk.test.lib.Asserts.*; |
40 |
39 |