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:
parent
81c6ccf729
commit
e6afe110b8
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user