equal
deleted
inserted
replaced
25 * @test |
25 * @test |
26 * @modules java.base/jdk.internal.misc |
26 * @modules java.base/jdk.internal.misc |
27 * @library /test/lib .. |
27 * @library /test/lib .. |
28 * @compile p2/c2.java |
28 * @compile p2/c2.java |
29 * @build sun.hotspot.WhiteBox |
29 * @build sun.hotspot.WhiteBox |
30 * @compile/module=java.base java/lang/reflect/ModuleHelper.java |
30 * @compile/module=java.base java/lang/ModuleHelper.java |
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
33 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI AccessCheckJavaBase |
33 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI AccessCheckJavaBase |
34 */ |
34 */ |
35 |
35 |
36 import java.lang.reflect.Module; |
|
37 import static jdk.test.lib.Asserts.*; |
36 import static jdk.test.lib.Asserts.*; |
38 |
37 |
39 public class AccessCheckJavaBase { |
38 public class AccessCheckJavaBase { |
40 |
39 |
41 // Test that a class defined to module_two always can read java.base. |
40 // Test that a class defined to module_two always can read java.base. |