StringCharBuffer and bulk get
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Jul 2 20:09:36 UTC 2025
> On Jul 2, 2025, at 1:05 PM, Brett Okken <brett.okken.os at gmail.com> wrote:
>
>> It looks like only CharBuffer.getChars is broken so the rest of the change can stay. I filed this issue to track it:
>>
>> https://bugs.openjdk.org/browse/JDK-8361299
>>
>> The fix is straightforward but will break a test and require a CSR.
>
>
> Looks like the testNG GetChars has
>
> cb.getChars(cb.position(), cb.limit(), dst, 0);
>
> but that should have been
>
> cb.getChars(0, cb.remaining(), dst, 0);
It’s this one ^.
Thanks,
Brian
> or
>
> cb.getChars(0, cb.length(), dst, 0);
>
> - Brett
More information about the nio-dev
mailing list