8016256: Make finalization final

Thu, 11 Jul 2013 12:59:03 -0400

author
hseigel
date
Thu, 11 Jul 2013 12:59:03 -0400
changeset 5869
5c599c419c1d
parent 5252
3a0774193f71
child 5870
d840f02d03b4

8016256: Make finalization final
Summary: Add private methods to final methods check
Reviewed-by: coleenp, acorn, ahgross
Contributed-by: harold.seigel@oracle.com

src/share/vm/classfile/classFileParser.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/classfile/classFileParser.cpp	Wed Jun 19 11:02:10 2013 +0100
     1.2 +++ b/src/share/vm/classfile/classFileParser.cpp	Thu Jul 11 12:59:03 2013 -0400
     1.3 @@ -4481,9 +4481,8 @@
     1.4    for (int index = 0; index < num_methods; index++) {
     1.5      Method* m = methods->at(index);
     1.6  
     1.7 -    // skip private, static and <init> methods
     1.8 -    if ((!m->is_private()) &&
     1.9 -        (!m->is_static()) &&
    1.10 +    // skip static and <init> methods
    1.11 +    if ((!m->is_static()) &&
    1.12          (m->name() != vmSymbols::object_initializer_name())) {
    1.13  
    1.14        Symbol* name = m->name();

mercurial