<i18n dev> RFR: JDK-8276447 Deprecate finalization-related methods for removal

Mandy Chung mchung at openjdk.java.net
Fri Nov 19 19:10:12 UTC 2021

On Fri, 19 Nov 2021 18:15:46 GMT, Brent Christian <bchristi at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/Object.java line 481:
>>> 479:      * system resources or to perform other cleanup.
>>> 480:      * <p>
>>> 481:      * <b>When running in a Java virtual machine in which finalization has been
>> Disabling finalization is not part of the Java SE spec.   This paragraph describes the implementation of HotSpot VM and I think it does not belong to this javadoc.
> The coupling between this change and [8276422](https://bugs.openjdk.java.net/browse/JDK-8276422) ("Add command-line option to disable finalization") is probably tighter than would be ideal.  That [CSR](https://bugs.openjdk.java.net/browse/JDK-8276773) allows for finalization to be disabled in the SE Platform Spec and the JLS.

Thanks for pointing out that the CSR for JDK-8276422 ("Add command-line option to disable finalization") includes the change of the SE Platform Spec and JLS to allow an implementation for finalization to be disabled.   This makes senses now.


PR: https://git.openjdk.java.net/jdk/pull/6465

More information about the i18n-dev mailing list