comparison src/share/vm/classfile/classFileParser.cpp @ 2461:758ba0bf7bcc

7012087: JSR 292 Misleading exception message for a non-bound MH for a virtual method Summary: Improve error message formatting to give more information to user. Also, catch a corner case related to 6930553 and 6844449. Reviewed-by: kvn
author jrose
date Thu, 07 Apr 2011 17:12:21 -0700
parents ed69575596ac
children 8ce625481709
comparison
equal deleted inserted replaced
2460:ed69575596ac 2461:758ba0bf7bcc
558 verify_legal_field_signature(name, sig, CHECK_(nullHandle)); 558 verify_legal_field_signature(name, sig, CHECK_(nullHandle));
559 } 559 }
560 } 560 }
561 break; 561 break;
562 } 562 }
563 case JVM_CONSTANT_InvokeDynamic:
563 case JVM_CONSTANT_Fieldref: 564 case JVM_CONSTANT_Fieldref:
564 case JVM_CONSTANT_Methodref: 565 case JVM_CONSTANT_Methodref:
565 case JVM_CONSTANT_InterfaceMethodref: { 566 case JVM_CONSTANT_InterfaceMethodref: {
566 int name_and_type_ref_index = cp->name_and_type_ref_index_at(index); 567 int name_and_type_ref_index = cp->name_and_type_ref_index_at(index);
567 // already verified to be utf8 568 // already verified to be utf8