< prev index next >

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

Print this page

 59             "java.lang.NoClassDefFoundError: CustomInterface2_ia",
 60             "Cannot find CustomLoadee2");
 61 
 62         dumpShouldFail(
 63             "TESTCASE E2: missing one interface",
 64             appJar, classlist(
 65                 "Hello",
 66                 "java/lang/Object id: 1",
 67                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 68                 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
 69                 "CustomLoadee2 id: 4 super: 1 interfaces: 2 source: " + customJarPath
 70             ),
 71             "The number of interfaces (1) specified in class list does not match the class file (2)");
 72 
 73         dumpShouldFail(
 74             "TESTCASE E3: specifying an interface that's not implemented by the class",
 75             appJar, classlist(
 76                 "Hello",
 77                 "java/lang/Object id: 1",
 78                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 79                 "CustomLoadee id: 2 super: 1 interfaces: 2 source: " + customJarPath
 80             ),
 81             "The number of interfaces (1) specified in class list does not match the class file (0)");
 82 
 83         dumpShouldFail(
 84             "TESTCASE E4: repeating an ID in the interfaces: keyword",
 85             appJar, classlist(
 86                 "Hello",
 87                 "java/lang/Object id: 1",
 88                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 89                 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
 90                 "CustomLoadee2 id: 4 super: 1 interfaces: 2 2 3 source: " + customJarPath
 91             ),
 92             "The number of interfaces (3) specified in class list does not match the class file (2)");
 93 
 94         dumpShouldFail(
 95             "TESTCASE E5: wrong super class",
 96             appJar, classlist(
 97                 "Hello",
 98                 "java/lang/Object id: 1",
 99                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,

 59             "java.lang.NoClassDefFoundError: CustomInterface2_ia",
 60             "Cannot find CustomLoadee2");
 61 
 62         dumpShouldFail(
 63             "TESTCASE E2: missing one interface",
 64             appJar, classlist(
 65                 "Hello",
 66                 "java/lang/Object id: 1",
 67                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 68                 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
 69                 "CustomLoadee2 id: 4 super: 1 interfaces: 2 source: " + customJarPath
 70             ),
 71             "The number of interfaces (1) specified in class list does not match the class file (2)");
 72 
 73         dumpShouldFail(
 74             "TESTCASE E3: specifying an interface that's not implemented by the class",
 75             appJar, classlist(
 76                 "Hello",
 77                 "java/lang/Object id: 1",
 78                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 79                 "CustomLoadee id: 3 super: 1 interfaces: 2 source: " + customJarPath
 80             ),
 81             "The number of interfaces (1) specified in class list does not match the class file (0)");
 82 
 83         dumpShouldFail(
 84             "TESTCASE E4: repeating an ID in the interfaces: keyword",
 85             appJar, classlist(
 86                 "Hello",
 87                 "java/lang/Object id: 1",
 88                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
 89                 "CustomInterface2_ib id: 3 super: 1 source: " + customJarPath,
 90                 "CustomLoadee2 id: 4 super: 1 interfaces: 2 2 3 source: " + customJarPath
 91             ),
 92             "The number of interfaces (3) specified in class list does not match the class file (2)");
 93 
 94         dumpShouldFail(
 95             "TESTCASE E5: wrong super class",
 96             appJar, classlist(
 97                 "Hello",
 98                 "java/lang/Object id: 1",
 99                 "CustomInterface2_ia id: 2 super: 1 source: " + customJarPath,
< prev index next >