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 [v4]
Brian Burkhalter
bpb at openjdk.org
Thu Dec 1 16:29:31 UTC 2022
On Wed, 30 Nov 2022 20:48:12 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> `java.io.InputStream::transferTo` could conceivably return a negative value if the count of bytes transferred overflows a `long`. Modify the method to limit the number of bytes transferred to `Long.MAX_VALUE` per invocation.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8297632: Add verbiage to ZipInputStream::transferTo
> Latest version ([558cbc8](https://github.com/openjdk/jdk/commit/558cbc8a32428a9630a2b7c57615659d92bfdc78)) looks okay but this change will likely have a tail so I think we should wait until after the fork for JDK 20 to integrate this.
It can wait a week.
> To that end, I've changed the fixVersion to 21 and the same on the CSR, I hope that is okay.
No problem.
-------------
PR: https://git.openjdk.org/jdk/pull/11403
More information about the core-libs-dev
mailing list