< prev index next >

test/runtime/modules/AccessCheck/DiffCL_ExpQualOther.java

Print this page

        

*** 27,41 **** * @test * @summary Test that if module m1 can read module m2, but package p2 in m2 * is exported specifically to module m3, then class p1.c1 in m1 can not * access p2.c2 in m2. * @modules java.base/jdk.internal.misc ! * @library /testlibrary /test/lib * @compile myloaders/MyDiffClassLoader.java * @compile p2/c2.java * @compile p1/c1.java - * @build DiffCL_ExpQualOther * @run main/othervm -Xbootclasspath/a:. DiffCL_ExpQualOther */ import static jdk.test.lib.Asserts.*; --- 27,40 ---- * @test * @summary Test that if module m1 can read module m2, but package p2 in m2 * is exported specifically to module m3, then class p1.c1 in m1 can not * access p2.c2 in m2. * @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:. DiffCL_ExpQualOther */ import static jdk.test.lib.Asserts.*;
< prev index next >