< prev index next >
test/runtime/modules/AccessCheck/UmodUpkgDiffCL_NotExp.java
Print this page
*** 26,40 ****
/*
* @test
* @summary class c5 in an unnamed module can read module m2, but package p6 in module m2 is not exported.
* Access denied since even though unnamed module can read all modules, p6 in module m2 is not exported at all.
* @modules java.base/jdk.internal.misc
! * @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p6/c6.java
* @compile c5.java
- * @build UmodUpkgDiffCL_NotExp
* @run main/othervm -Xbootclasspath/a:. UmodUpkgDiffCL_NotExp
*/
import static jdk.test.lib.Asserts.*;
--- 26,39 ----
/*
* @test
* @summary class c5 in an unnamed module can read module m2, but package p6 in module m2 is not exported.
* Access denied since even though unnamed module can read all modules, p6 in module m2 is not exported at all.
* @modules java.base/jdk.internal.misc
! * @library /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p6/c6.java
* @compile c5.java
* @run main/othervm -Xbootclasspath/a:. UmodUpkgDiffCL_NotExp
*/
import static jdk.test.lib.Asserts.*;
< prev index next >