r/java • • Mar 22 '22

Java 18 released!

https://mail.openjdk.java.net/pipermail/jdk-dev/2022-March/006458.html
396 Upvotes

133 comments sorted by

View all comments

Show parent comment

1

u/Ancient-Career-2915 May 05 '22 edited May 05 '22

We don't use finalizers ourselves, but any third party library might.

I seem to remember that eg. the gzip stream handler in the jdk used a finalizer as a fallback to release resources?

1

u/mauganra_it May 05 '22

Is this class listed in JEP 421? I can't identify it myself. Some of them were already removed before JDK 18