< prev index next >

test/hotspot/jtreg/runtime/Nestmates/classFileParsing/TestNestmateAttributes.java

Print this page

        

@@ -30,10 +30,11 @@
  *          ConflictingAttributesInNestHost.jcod
  *          ConflictingAttributesInNestMember.jcod
  *          BadNestMembersLength.jcod
  *          BadNestMembersEntry.jcod
  *          BadNestHost.jcod
+ *          BadNestHostLength.jcod
  * @run main TestNestmateAttributes
  */
 
 public class TestNestmateAttributes {
     public static void main(String args[]) throws Throwable {

@@ -43,20 +44,22 @@
             "ConflictingAttributesInNestHost",
             "NestmateAttributeHolder$ConflictingAttributesInNestMember",
             "BadNestMembersLength",
             "BadNestMembersEntry",
             "NestmateAttributeHolder$BadNestHost",
+            "NestmateAttributeHolder$BadNestHostLength",
         };
 
         String[] messages = new String[] {
             "Multiple NestHost attributes in class file",
             "Multiple NestMembers attributes in class file",
             "Conflicting NestMembers and NestHost attributes",
             "Conflicting NestHost and NestMembers attributes",
             "Wrong NestMembers attribute length",
             "Nest member class_info_index 9 has bad constant type",
             "Nest-host class_info_index 10 has bad constant type",
+            "Wrong NestHost attribute length",
         };
 
         for (int i = 0; i < badClasses.length; i++ ) {
             try {
                 Class c = Class.forName(badClasses[i]);
< prev index next >