< prev index next >

test/jdk/java/lang/reflect/AccessibleObject/ModuleSetAccessibleTest.java

Print this page
*** 147,11 ***
      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);
--- 147,11 ---
      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 >