< prev index next >
test/runtime/modules/AccessCheck/UmodDiffCL_ExpQualOther.java
Print this page
*** 27,41 ****
* @test
* @summary class p1.c1 defined in an unnamed module tries to access p2.c2 defined in m2.
* Access is denied, since an unnamed module can read all modules but p2 in module
* m2 is exported specifically to module m1, not to all modules.
* @modules java.base/jdk.internal.misc
! * @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
* @compile p1/c1.java
- * @build UmodDiffCL_ExpQualOther
* @run main/othervm -Xbootclasspath/a:. UmodDiffCL_ExpQualOther
*/
import static jdk.test.lib.Asserts.*;
--- 27,40 ----
* @test
* @summary class p1.c1 defined in an unnamed module tries to access p2.c2 defined in m2.
* Access is denied, since an unnamed module can read all modules but p2 in module
* m2 is exported specifically to module m1, not to all modules.
* @modules java.base/jdk.internal.misc
! * @library /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
* @compile p1/c1.java
* @run main/othervm -Xbootclasspath/a:. UmodDiffCL_ExpQualOther
*/
import static jdk.test.lib.Asserts.*;
< prev index next >