Should Inflater & Deflater implement Closeable?
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 16 14:22:44 UTC 2022
On 16/11/2022 04:15, Jaikiran Pai wrote:
> There's https://bugs.openjdk.org/browse/JDK-8225763. I plan to revive
> that effort some time soon, it's been on my todo list for the past few
> months.
Just to add to Jai's comment is that there is more to this that adding a
close method that calls end. The close method should strive to be
idempotent and the end method isn't. There is also interaction with
subclassing that need to be worked out to avoid surprise.
-Alan.
More information about the core-libs-dev
mailing list