equal
deleted
inserted
replaced
27 * @test |
27 * @test |
28 * @summary class p1.c1 defined in unnamed module tries to access p2.c2 defined in m2. |
28 * @summary class p1.c1 defined in unnamed module tries to access p2.c2 defined in m2. |
29 * Access is denied since even though unnamed module can read all modules, p2 |
29 * Access is denied since even though unnamed module can read all modules, p2 |
30 * in module m2 is not exported at all. |
30 * in module m2 is not exported at all. |
31 * @modules java.base/jdk.internal.misc |
31 * @modules java.base/jdk.internal.misc |
32 * @library /testlibrary /test/lib |
32 * @library /test/lib |
33 * @compile myloaders/MyDiffClassLoader.java |
33 * @compile myloaders/MyDiffClassLoader.java |
34 * @compile p1/c1.java |
34 * @compile p1/c1.java |
35 * @build UmodDiffCL_PkgNotExp |
|
36 * @run main/othervm -Xbootclasspath/a:. UmodDiffCL_PkgNotExp |
35 * @run main/othervm -Xbootclasspath/a:. UmodDiffCL_PkgNotExp |
37 */ |
36 */ |
38 |
37 |
39 import static jdk.test.lib.Asserts.*; |
38 import static jdk.test.lib.Asserts.*; |
40 |
39 |