JEP proposed to target JDK 18: 421: Deprecate Finalization for Removal

mark.reinhold at oracle.com mark.reinhold at oracle.com
Tue Nov 30 19:43:38 UTC 2021


The following JEP is proposed to target JDK 18:

  421: Deprecate Finalization for Removal
       https://openjdk.java.net/jeps/421

  Summary: Deprecate finalization for removal in a future
  release. Finalization remains enabled by default for now, but can
  be disabled to facilitate early testing. In a future release it
  will be disabled by default, and in a later release it will be
  removed. Maintainers of libraries and applications that rely upon
  finalization should consider migrating to other resource management
  techniques such as the try-with-resources statement and cleaners.

Feedback on this proposal from JDK Project Committers and Reviewers [1]
is more than welcome, as are reasoned objections.  If no such objections
are raised by 23:59 UTC on Tuesday, 7 December, or if they’re raised
and then satisfactorily answered, then per the JEP 2.0 process proposal
[2] I’ll target this JEP to JDK 18.

- Mark


[1] https://openjdk.java.net/census#jdk
[2] https://cr.openjdk.java.net/~mr/jep/jep-2.0-02.html


More information about the jdk-dev mailing list