8016256: Make finalization final
Add private methods to final methods check Reviewed-by: coleenp, acorn, ahgross
This commit is contained in:
parent
748456a6d9
commit
8379a071b6
@ -4481,9 +4481,8 @@ void ClassFileParser::check_final_method_override(instanceKlassHandle this_klass
|
||||
for (int index = 0; index < num_methods; index++) {
|
||||
Method* m = methods->at(index);
|
||||
|
||||
// skip private, static and <init> methods
|
||||
if ((!m->is_private()) &&
|
||||
(!m->is_static()) &&
|
||||
// skip static and <init> methods
|
||||
if ((!m->is_static()) &&
|
||||
(m->name() != vmSymbols::object_initializer_name())) {
|
||||
|
||||
Symbol* name = m->name();
|
||||
|
Loading…
x
Reference in New Issue
Block a user