< prev index next > test/jdk/java/lang/reflect/AccessibleObject/ModuleSetAccessibleTest.java
Print this page
public void testJavaLangClass() throws Exception {
// non-public constructor
Constructor<?> ctor
= Class.class.getDeclaredConstructor(ClassLoader.class, Class.class, char.class,
! ProtectionDomain.class, boolean.class, char.class);
AccessibleObject[] ctors = { ctor };
try {
ctor.setAccessible(true);
assertTrue(false);
public void testJavaLangClass() throws Exception {
// non-public constructor
Constructor<?> ctor
= Class.class.getDeclaredConstructor(ClassLoader.class, Class.class, char.class,
! ProtectionDomain.class, boolean.class, boolean.class, char.class);
AccessibleObject[] ctors = { ctor };
try {
ctor.setAccessible(true);
assertTrue(false);
< prev index next >