hotspot/test/runtime/modules/AccessCheck/Umod_PkgNotExp.java
changeset 40631 ed82623d7831
parent 38306 db8cc86cbae9
child 42307 cefc81dc1d52
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
    26 /*
    26 /*
    27  * @test
    27  * @test
    28  * @summary Test if package p2 in module m2 is not exported, then class p1.c1
    28  * @summary Test if package p2 in module m2 is not exported, then class p1.c1
    29  *          in an unnamed module can not access p2.c2 in module m2.
    29  *          in an unnamed module can not access p2.c2 in module m2.
    30  * @modules java.base/jdk.internal.misc
    30  * @modules java.base/jdk.internal.misc
    31  * @library /testlibrary /test/lib
    31  * @library /test/lib
    32  * @compile myloaders/MySameClassLoader.java
    32  * @compile myloaders/MySameClassLoader.java
    33  * @compile p2/c2.java
    33  * @compile p2/c2.java
    34  * @compile p1/c1.java
    34  * @compile p1/c1.java
    35  * @build Umod_PkgNotExp
       
    36  * @run main/othervm -Xbootclasspath/a:. Umod_PkgNotExp
    35  * @run main/othervm -Xbootclasspath/a:. Umod_PkgNotExp
    37  */
    36  */
    38 
    37 
    39 import static jdk.test.lib.Asserts.*;
    38 import static jdk.test.lib.Asserts.*;
    40 
    39