comparison src/share/vm/classfile/classFileParser.cpp @ 12911:5c599c419c1d

8016256: Make finalization final Summary: Add private methods to final methods check Reviewed-by: coleenp, acorn, ahgross Contributed-by: harold.seigel@oracle.com
author hseigel
date Thu, 11 Jul 2013 12:59:03 -0400
parents f2110083203d
children 8f66130f7b5c
comparison
equal deleted inserted replaced
11020:3a0774193f71 12911:5c599c419c1d
4479 4479
4480 // go thru each method and check if it overrides a final method 4480 // go thru each method and check if it overrides a final method
4481 for (int index = 0; index < num_methods; index++) { 4481 for (int index = 0; index < num_methods; index++) {
4482 Method* m = methods->at(index); 4482 Method* m = methods->at(index);
4483 4483
4484 // skip private, static and <init> methods 4484 // skip static and <init> methods
4485 if ((!m->is_private()) && 4485 if ((!m->is_static()) &&
4486 (!m->is_static()) &&
4487 (m->name() != vmSymbols::object_initializer_name())) { 4486 (m->name() != vmSymbols::object_initializer_name())) {
4488 4487
4489 Symbol* name = m->name(); 4488 Symbol* name = m->name();
4490 Symbol* signature = m->signature(); 4489 Symbol* signature = m->signature();
4491 Klass* k = this_klass->super(); 4490 Klass* k = this_klass->super();