RFR: 8365197: javax.imageio.stream MemoryCache based streams no longer need a disposer.

Phil Race prr at openjdk.org
Tue Aug 26 05:15:33 UTC 2025


On Mon, 25 Aug 2025 20:41:25 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> may be there are some hints in the history that suggest why it was initially added? or it might simply have been an overlooked misuse of the disposer?

I think it was mostly a mis-use - partly because it could also flush() the stream and there wasn't sufficient thought given when converting from finalize() for this case a long time ago.
However as discussed in another PR, even for output, if you haven't flushed the stream a lot earlier than this you are too late now.
And for input I can't see any issue

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26933#issuecomment-3222648564


More information about the client-libs-dev mailing list