RFR 9: 8165641 : Deprecate Object.finalize
Roger.Riggs at Oracle.com
Fri Mar 10 21:40:30 UTC 2017
Finalizers are inherently problematic and their use can lead to
deadlocks, hangs, and other problematic behavior.
The problems have been accumulating for many years and the first step to
deprecate Object.finalize and the overrides in the JDK to communicate the
issues, recommend alternatives, and motivate changes where finalization
is currently used.
The behavior of finalization nor any uses of finalize are not modified
by this change.
Most of the changes are to suppress compilation warnings within the JDK.
Please review and comment.
More information about the core-libs-dev