8037157: Verify <init> call
Check for null method Reviewed-by: coleenp, acorn, mschoene
This commit is contained in:
parent
55dc1a6965
commit
2216f41ed6
@ -2311,6 +2311,11 @@ void ClassVerifier::verify_invoke_init(
|
||||
vmSymbols::object_initializer_name(),
|
||||
cp->signature_ref_at(bcs->get_index_u2()),
|
||||
Klass::normal);
|
||||
if (m == NULL) {
|
||||
verify_error(ErrorContext::bad_code(bci),
|
||||
"Call to missing <init> method");
|
||||
return;
|
||||
}
|
||||
instanceKlassHandle mh(THREAD, m->method_holder());
|
||||
if (m->is_protected() && !mh->is_same_class_package(_klass())) {
|
||||
bool assignable = current_type().is_assignable_from(
|
||||
|
Loading…
Reference in New Issue
Block a user