hotspot/test/runtime/modules/AccessCheck/CheckRead.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 that if module m1 can not read module m2, then class p1.c1
    28  * @summary Test that if module m1 can not read module m2, then class p1.c1
    29  *          in module m1 can not access p2.c2 in module m2.
    29  *          in module m1 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 CheckRead
       
    36  * @run main/othervm -Xbootclasspath/a:. CheckRead
    35  * @run main/othervm -Xbootclasspath/a:. CheckRead
    37  */
    36  */
    38 
    37 
    39 import static jdk.test.lib.Asserts.*;
    38 import static jdk.test.lib.Asserts.*;
    40 
    39