RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v7]
Brian Burkhalter
bpb at openjdk.org
Thu Dec 14 23:20:51 UTC 2023
On Thu, 14 Dec 2023 21:54:53 GMT, Markus KARG <duke at openjdk.org> wrote:
>> I mean SequenceInputStream, not the base class: https://github.com/openjdk/jdk/blob/c328f9589ddc3a981a2c63801bd991f8e593e69f/src/java.base/share/classes/java/io/SequenceInputStream.java#L249
>>
>> Could you please double-check?
>
> IMHO @vlsi is right. It is incorrect that we stop the transfer in the overflow case. We should fix it as he suggested. I can do that if you like.
Right, the base class. The suggested change was made for `InputStream` in 254d6990bcf75700f1c3aa18e0f8b73b639d9bad. It looks like it should be in `SequenceInputStream` as well. I created [JDK-8322141](https://bugs.openjdk.org/browse/JDK-8322141) to track this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/11403#discussion_r1427398726
More information about the core-libs-dev
mailing list