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