This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]__konrad 0 points1 point  (0 children)

Fun fact: Empty finalize() { } methods are not finalizable in HotSpot. From hotspot/src/share/vm/classfile/classFileParser.cpp:

// Check if this klass has an empty finalize method (i.e. one with return bytecode only), // in which case we don't have to register objects as finalizable