mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
e237fbfe1f
commit
34329af386
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue