< prev index next >

test/jdk/java/lang/invoke/defineHiddenClass/StaticInvocableTest.java

Print this page
*** 115,11 ***
       * }
       */
      public static byte[] dumpClass(String pkg) {
          return ClassFile.of().build(ClassDesc.of(pkg.replace('/', '.'), "MyClass"), clb -> {
              clb.withSuperclass(CD_Object);
!             clb.withFlags(AccessFlag.PUBLIC, AccessFlag.SUPER);
              clb.withMethodBody(INIT_NAME, MTD_void, 0, cob -> {
                  cob.aload(0);
                  cob.invokespecial(CD_Object, INIT_NAME, MTD_void);
                  cob.return_();
              });
--- 115,11 ---
       * }
       */
      public static byte[] dumpClass(String pkg) {
          return ClassFile.of().build(ClassDesc.of(pkg.replace('/', '.'), "MyClass"), clb -> {
              clb.withSuperclass(CD_Object);
!             clb.withFlags(AccessFlag.PUBLIC, AccessFlag.IDENTITY);
              clb.withMethodBody(INIT_NAME, MTD_void, 0, cob -> {
                  cob.aload(0);
                  cob.invokespecial(CD_Object, INIT_NAME, MTD_void);
                  cob.return_();
              });
< prev index next >