On Wed, 3 Jan 2024 18:01:59 GMT, Brian Burkhalter <b...@openjdk.org> wrote:
> The final position instead of the number of bytes to write was being passed > to `ByteArrayOuputStream.write(byte[],int,int)`. Everyone was apparently caught off guard as previously `Arrays.copyOfRange(byte[],int,int)` had been used here, and its third parameter is the `to` position, not the number of bytes to copy. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17250#issuecomment-1875761630