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]
Alan Bateman
alanb at openjdk.org
Fri Dec 15 08:19:02 UTC 2023
On Thu, 14 Dec 2023 23:17:41 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> 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.
We don't have any tests to check the behavior of the transferTo overrides when they transfer more than nine quintillion bytes so dependent on catching issues like this during code review.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/11403#discussion_r1427679131
More information about the core-libs-dev
mailing list