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]
Markus KARG
duke at openjdk.org
Thu Dec 14 21:57:58 UTC 2023
On Thu, 14 Dec 2023 20:21:10 GMT, Vladimir Sitnikov <vsitnikov at openjdk.org> wrote:
>>> What do you think?
>>
>> I think that you are looking at an obsolete repository:
>>
>> https://github.com/openjdk/jdk/blob/c328f9589ddc3a981a2c63801bd991f8e593e69f/src/java.base/share/classes/java/io/InputStream.java#L802
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/11403#discussion_r1427342442
More information about the core-libs-dev
mailing list