< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/customLoader/ClassListFormatE.java

Print this page
*** 73,11 ***
              "TESTCASE E3: specifying an interface that's not implemented by the class",
              appJar, classlist(
                  "Hello",
                  "java/lang/Object id: 1",
                  "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
!                 "CustomLoadee id: 2 super: 1 interfaces: 2 source: " + customJarPath
              ),
              "The number of interfaces (1) specified in class list does not match the class file (0)");
  
          dumpShouldFail(
              "TESTCASE E4: repeating an ID in the interfaces: keyword",
--- 73,11 ---
              "TESTCASE E3: specifying an interface that's not implemented by the class",
              appJar, classlist(
                  "Hello",
                  "java/lang/Object id: 1",
                  "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
!                 "CustomLoadee id: 3 super: 1 interfaces: 2 source: " + customJarPath
              ),
              "The number of interfaces (1) specified in class list does not match the class file (0)");
  
          dumpShouldFail(
              "TESTCASE E4: repeating an ID in the interfaces: keyword",

*** 93,13 ***
          dumpShouldFail(
              "TESTCASE E5: wrong super class",
              appJar, classlist(
                  "Hello",
                  "java/lang/Object id: 1",
!                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
!                 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
!                 "CustomLoadee id: 4 super: 1 source: " + customJarPath,
!                 "CustomLoadee2 id: 5 super: 4 interfaces: 2 3 source: " + customJarPath
              ),
!             "The specified super class CustomLoadee (id 4) does not match actual super class java.lang.Object");
      }
  }
--- 93,14 ---
          dumpShouldFail(
              "TESTCASE E5: wrong super class",
              appJar, classlist(
                  "Hello",
                  "java/lang/Object id: 1",
!                 "java/lang/IdentityObject id: 2",
!                 "CustomInterface2_ia id: 3 super: 1 source: " + customJarPath,
!                 "CustomInterface2_ib id: 4 super: 1 source: " + customJarPath,
!                 "CustomLoadee id: 5 super: 1 interfaces: 2 source: " + customJarPath,
+                 "CustomLoadee2 id: 6 super: 5 interfaces: 2 3 4 source: " + customJarPath
              ),
!             "The specified super class CustomLoadee (id 5) does not match actual super class java.lang.Object");
      }
  }
< prev index next >