7012087: JSR 292 Misleading exception message for a non-bound MH for a virtual method

Improve error message formatting to give more information to user.  Also, catch a corner case related to 6930553 and 6844449.

Reviewed-by: kvn
This commit is contained in:
John R Rose 2011-04-07 17:12:21 -07:00
parent 16784a72e8
commit b95f04efbf
2 changed files with 26 additions and 8 deletions

View file

@ -560,6 +560,7 @@ constantPoolHandle ClassFileParser::parse_constant_pool(TRAPS) {
}
break;
}
case JVM_CONSTANT_InvokeDynamic:
case JVM_CONSTANT_Fieldref:
case JVM_CONSTANT_Methodref:
case JVM_CONSTANT_InterfaceMethodref: {