RFR: 8322877: java/io/BufferedInputStream/TransferTo.java failed with IndexOutOfBoundsException
Brian Burkhalter
bpb at openjdk.org
Thu Jan 4 18:43:33 UTC 2024
On Thu, 4 Jan 2024 18:37:59 GMT, Markus KARG <duke at openjdk.org> wrote:
>> No: the third param of [Arrays.copyOfRange](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Arrays.html#copyOfRange(byte[],int,int)) is `to`, not `len`.
>
> Ah, this explains why it did not fail originally, but only after adding the "isTrusted" case! 🙏
See https://github.com/openjdk/jdk/pull/17250#issuecomment-1875761630 above.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17250#discussion_r1442126261
More information about the core-libs-dev
mailing list