On Mon, 25 Aug 2025 20:41:25 GMT, Sergey Bylokhov <[email protected]> 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
