RFR: JDK-8322141: SequenceInputStream.transferTo should not return as soon as Long.MAX_VALUE bytes have been transferred

Alan Bateman alanb at openjdk.org
Fri Dec 15 09:58:41 UTC 2023


On Fri, 15 Dec 2023 08:23:58 GMT, Markus KARG <duke at openjdk.org> wrote:

> Fixes JDK-8322141
> 
> As suggested by @vlsi and documented by @bplb this PR does not return, but only sets the maximum result value.

I think Jai is right, maybe we need to come up with tests that quickly check the handling at this limit.

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

Changes requested by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17119#pullrequestreview-1783490622


More information about the core-libs-dev mailing list