< prev index next >
src/hotspot/share/classfile/verifier.cpp
Print this page
@@ -2807,11 +2807,11 @@
"Third and fourth operand bytes of invokedynamic must be zero");
return;
}
}
- if (method_name->byte_at(0) == '<') {
+ if (method_name->char_at(0) == '<') {
// Make sure <init> can only be invoked by invokespecial
if (opcode != Bytecodes::_invokespecial ||
method_name != vmSymbols::object_initializer_name()) {
verify_error(ErrorContext::bad_code(bci),
"Illegal call to internal method");
< prev index next >