hotspot/src/share/vm/classfile/verifier.cpp
changeset 381 e7275780f686
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
--- a/hotspot/src/share/vm/classfile/verifier.cpp	Thu Apr 24 15:07:57 2008 -0400
+++ b/hotspot/src/share/vm/classfile/verifier.cpp	Tue Apr 29 11:21:51 2008 -0400
@@ -1205,7 +1205,7 @@
         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(