提交 4c09928c 编写于 作者: H hseigel

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

Summary: Exclude private methods when checking for final method override.
Reviewed-by: kamg, coleenp, dholmes, mseledtsov
上级 82f0388b
...@@ -4483,8 +4483,8 @@ void ClassFileParser::check_final_method_override(instanceKlassHandle this_klass ...@@ -4483,8 +4483,8 @@ void ClassFileParser::check_final_method_override(instanceKlassHandle this_klass
for (int index = 0; index < num_methods; index++) { for (int index = 0; index < num_methods; index++) {
Method* m = methods->at(index); Method* m = methods->at(index);
// skip static and <init> methods // skip private, static, and <init> methods
if ((!m->is_static()) && if ((!m->is_private() && !m->is_static()) &&
(m->name() != vmSymbols::object_initializer_name())) { (m->name() != vmSymbols::object_initializer_name())) {
Symbol* name = m->name(); Symbol* name = m->name();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册