hotspot/src/share/vm/classfile/verifier.cpp
changeset 33799 77ebbd9b0ecc
parent 33602 16053580a684
child 34628 6d08ec72803b
equal deleted inserted replaced
33796:8745ee8ac1db 33799:77ebbd9b0ecc
  2844   }
  2844   }
  2845   // Push the result type.
  2845   // Push the result type.
  2846   if (sig_stream.type() != T_VOID) {
  2846   if (sig_stream.type() != T_VOID) {
  2847     if (method_name == vmSymbols::object_initializer_name()) {
  2847     if (method_name == vmSymbols::object_initializer_name()) {
  2848       // <init> method must have a void return type
  2848       // <init> method must have a void return type
  2849       /* Unreachable?  Class file parser verifies that <init> methods have
  2849       /* Unreachable?  Class file parser verifies that methods with '<' have
  2850        * void return */
  2850        * void return */
  2851       verify_error(ErrorContext::bad_code(bci),
  2851       verify_error(ErrorContext::bad_code(bci),
  2852           "Return type must be void in <init> method");
  2852           "Return type must be void in <init> method");
  2853       return;
  2853       return;
  2854     }
  2854     }