8028520: JVM should not throw VerifyError when a private method overrides a final method

Exclude private methods when checking for final method override.

Reviewed-by: kamg, coleenp, dholmes, mseledtsov
This commit is contained in:
Harold Seigel 2013-11-21 14:41:13 -05:00
parent e237fbfe1f
commit 34329af386

@ -4483,8 +4483,8 @@ void ClassFileParser::check_final_method_override(instanceKlassHandle this_klass
for (int index = 0; index < num_methods; index++) {
Method* m = methods->at(index);
// skip static and <init> methods
if ((!m->is_static()) &&
// skip private, static, and <init> methods
if ((!m->is_private() && !m->is_static()) &&
(m->name() != vmSymbols::object_initializer_name())) {
Symbol* name = m->name();