< prev index next >

test/runtime/modules/AccessCheck/UmodUpkg_NotExp.java

Print this page

        

*** 26,40 **** /* * @test * @summary Test if package p6 in module m2 is not exported, then class c5 * in an unnamed module can not access p6.c2 in module m2. * @modules java.base/jdk.internal.misc ! * @library /testlibrary /test/lib * @compile myloaders/MySameClassLoader.java * @compile p6/c6.java * @compile c5.java - * @build UmodUpkg_NotExp * @run main/othervm -Xbootclasspath/a:. UmodUpkg_NotExp */ import static jdk.test.lib.Asserts.*; --- 26,39 ---- /* * @test * @summary Test if package p6 in module m2 is not exported, then class c5 * in an unnamed module can not access p6.c2 in module m2. * @modules java.base/jdk.internal.misc ! * @library /test/lib * @compile myloaders/MySameClassLoader.java * @compile p6/c6.java * @compile c5.java * @run main/othervm -Xbootclasspath/a:. UmodUpkg_NotExp */ import static jdk.test.lib.Asserts.*;
< prev index next >