RFR JDK-8185582, Update Zip implementation to use Cleaner, not finalizers

Xueming Shen xueming.shen at oracle.com
Wed Sep 27 06:35:26 UTC 2017


Hi,

Please help review the change for JDK-8185582.

issue:    https://bugs.openjdk.java.net/browse/JDK-8185582
webrev: http://cr.openjdk.java.net/~sherman/8185582/webrev/
csr:       https://bugs.openjdk.java.net/browse/JDK-8187485

The proposed change here is to replace the finalize() cleanup mechanism with
the newly introduced java.lang.ref.Cleaner for java.util.zip package 
(Deflater,
Inflater, ZipFile and 
ZipFile.ZipFileInputStrean/ZipFileInflaterInputStream).

Since it's an "incompatible" change, both behavioral and source 
incompatibility,
to remove the public finalize() from these classes, a corresponding CSR 
is also
created and need review as well.

Thanks,
Sherman



More information about the core-libs-dev mailing list