8016256: Make finalization final

Add private methods to final methods check

Reviewed-by: coleenp, acorn, ahgross
This commit is contained in:
Harold Seigel 2013-07-11 12:59:03 -04:00 committed by Harold Seigel
parent 748456a6d9
commit 8379a071b6

View File

@ -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();