src/share/vm/classfile/verifier.cpp

changeset 569
8a79f7ec8f5d
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/classfile/verifier.cpp	Thu Apr 24 15:07:57 2008 -0400
     1.2 +++ b/src/share/vm/classfile/verifier.cpp	Tue Apr 29 11:21:51 2008 -0400
     1.3 @@ -1205,7 +1205,7 @@
     1.4          case Bytecodes::_arraylength :
     1.5            type = current_frame.pop_stack(
     1.6              VerificationType::reference_check(), CHECK_VERIFY(this));
     1.7 -          if (!type.is_array()) {
     1.8 +          if (!(type.is_null() || type.is_array())) {
     1.9              verify_error(bci, bad_type_msg, "arraylength");
    1.10            }
    1.11            current_frame.push_stack(

mercurial