6692246: Regression : JDK 6u4 b01 fails two JCK tests when fallback is switched off

Added a clause to allow null to be an operand to the arraylength bytecode

Reviewed-by: sbohne, coleenp
This commit is contained in:
Keith McGuigan 2008-04-29 11:21:51 -04:00
parent 81c6ccf729
commit e6afe110b8

View File

@ -1205,7 +1205,7 @@ void ClassVerifier::verify_method(methodHandle m, TRAPS) {
case Bytecodes::_arraylength :
type = current_frame.pop_stack(
VerificationType::reference_check(), CHECK_VERIFY(this));
if (!type.is_array()) {
if (!(type.is_null() || type.is_array())) {
verify_error(bci, bad_type_msg, "arraylength");
}
current_frame.push_stack(