On Thu, 14 Dec 2023 23:17:41 GMT, Brian Burkhalter <b...@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