8016256: Make finalization final
authorhseigel
Thu, 11 Jul 2013 12:59:03 -0400
changeset 20657 a6e8dc18f115
parent 18066 b4b1f65075e5
child 20658 e8fcfaaae93a
8016256: Make finalization final Summary: Add private methods to final methods check Reviewed-by: coleenp, acorn, ahgross Contributed-by: harold.seigel@oracle.com
hotspot/src/share/vm/classfile/classFileParser.cpp
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Wed Jun 19 11:02:10 2013 +0100
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Jul 11 12:59:03 2013 -0400
@@ -4481,9 +4481,8 @@
   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();