Java Cup
Inside Java

News and views from members of the Java team at Oracle

New candidate JEP: 421: Deprecate Finalization for Removal

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.…


More at https://openjdk.java.net/jeps/421.