src/hotspot/share/classfile/verifier.cpp
changeset 51997 9ce37fa2e179
parent 51697 49e1b21d9878
child 52823 f5d0926026ec
equal deleted inserted replaced
51996:84743156e780 51997:9ce37fa2e179
  2807           "Third and fourth operand bytes of invokedynamic must be zero");
  2807           "Third and fourth operand bytes of invokedynamic must be zero");
  2808       return;
  2808       return;
  2809     }
  2809     }
  2810   }
  2810   }
  2811 
  2811 
  2812   if (method_name->byte_at(0) == '<') {
  2812   if (method_name->char_at(0) == '<') {
  2813     // Make sure <init> can only be invoked by invokespecial
  2813     // Make sure <init> can only be invoked by invokespecial
  2814     if (opcode != Bytecodes::_invokespecial ||
  2814     if (opcode != Bytecodes::_invokespecial ||
  2815         method_name != vmSymbols::object_initializer_name()) {
  2815         method_name != vmSymbols::object_initializer_name()) {
  2816       verify_error(ErrorContext::bad_code(bci),
  2816       verify_error(ErrorContext::bad_code(bci),
  2817           "Illegal call to internal method");
  2817           "Illegal call to internal method");