On Tue, 1 Apr 2025 13:24:08 GMT, Chen Liang <li...@openjdk.org> wrote:

>> Hello Chen, if you mean whether multiple instances of these streams can 
>> share the same default decompressor, then no, they can't (and they don't). 
>> Each creates its own instance of default decompressor/compressor.
>
> Is it impossible for another compliant implementation of Java SE to do so?

It's hard for me to guess what prompted that question, but I'll take a guess - 
are you asking this question to decide whether we should reword the 
pre-existing javadoc on these constructors to explicitly state that a new 
decompressor/compressor instance gets created for each instance of the stream? 
If so, then my opinion is that we shouldn't change that part of the existing 
doc.

If you meant something else, then please add the details and we can decide if 
any additional changes are necessary to the text.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23655#discussion_r2022969583

Reply via email to