equal
deleted
inserted
replaced
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 * @compile p3/c3.java |
29 * @compile p3/c3.java |
30 * @build sun.hotspot.WhiteBox |
30 * @build sun.hotspot.WhiteBox |
31 * @compile/module=java.base java/lang/reflect/ModuleHelper.java |
31 * @compile/module=java.base java/lang/ModuleHelper.java |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
33 * sun.hotspot.WhiteBox$WhiteBoxPermission |
33 * sun.hotspot.WhiteBox$WhiteBoxPermission |
34 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI AccessCheckSuper |
34 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI AccessCheckSuper |
35 */ |
35 */ |
36 |
36 |
37 import java.lang.reflect.Module; |
|
38 import static jdk.test.lib.Asserts.*; |
37 import static jdk.test.lib.Asserts.*; |
39 |
38 |
40 public class AccessCheckSuper { |
39 public class AccessCheckSuper { |
41 |
40 |
42 // Test that when a class cannot access its super class the message |
41 // Test that when a class cannot access its super class the message |