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 [v6]
Brian Burkhalter
bpb at openjdk.org
Tue Feb 7 16:40:06 UTC 2023
> `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: Increment recent copyright year to 2023
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/11403/files
- new: https://git.openjdk.org/jdk/pull/11403/files/446771db..b1cd84ec
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=11403&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=11403&range=04-05
Stats: 7 lines in 7 files changed: 0 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/11403.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11403/head:pull/11403
PR: https://git.openjdk.org/jdk/pull/11403
More information about the core-libs-dev
mailing list