--- old/src/hotspot/share/classfile/verifier.cpp 2020-07-31 16:51:21.374162032 +0000 +++ new/src/hotspot/share/classfile/verifier.cpp 2020-07-31 16:51:19.806385354 +0000 @@ -2116,7 +2116,7 @@ InstanceKlass* target_instance = InstanceKlass::cast(target_class); fieldDescriptor fd; if (is_method) { - Method* m = target_instance->uncached_lookup_method(field_name, field_sig, Klass::find_overpass); + Method* m = target_instance->uncached_lookup_method(field_name, field_sig, Klass::OverpassLookupMode::find_overpass); if (m != NULL && m->is_protected()) { if (!this_class->is_same_class_package(m->method_holder())) { return true; @@ -2709,7 +2709,7 @@ Method* m = InstanceKlass::cast(ref_klass)->uncached_lookup_method( vmSymbols::object_initializer_name(), cp->signature_ref_at(bcs->get_index_u2()), - Klass::find_overpass); + Klass::OverpassLookupMode::find_overpass); // Do nothing if method is not found. Let resolution detect the error. if (m != NULL) { InstanceKlass* mh = m->method_holder();