8016256: Make finalization final
Summary: Add private methods to final methods check
Reviewed-by: coleenp, acorn, ahgross
Contributed-by: harold.seigel@oracle.com
--- 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();