< prev index next >

test/runtime/modules/AccessCheck/ExpQualToM1.java

Print this page

        

*** 26,40 **** /* * @test * @summary Test that if module m1 can read module m2, AND package p2 in m2 is * exported qualifiedly to m1, then class p1.c1 in m1 can read p2.c2 in m2. * @modules java.base/jdk.internal.misc ! * @library /testlibrary /test/lib * @compile myloaders/MySameClassLoader.java * @compile p2/c2.java * @compile p1/c1.java - * @build ExpQualToM1 * @run main/othervm -Xbootclasspath/a:. ExpQualToM1 */ import static jdk.test.lib.Asserts.*; --- 26,39 ---- /* * @test * @summary Test that if module m1 can read module m2, AND package p2 in m2 is * exported qualifiedly to m1, then class p1.c1 in m1 can read p2.c2 in m2. * @modules java.base/jdk.internal.misc ! * @library /test/lib * @compile myloaders/MySameClassLoader.java * @compile p2/c2.java * @compile p1/c1.java * @run main/othervm -Xbootclasspath/a:. ExpQualToM1 */ import static jdk.test.lib.Asserts.*;
< prev index next >