RFR: 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer [v12]
Markus KARG
duke at openjdk.org
Mon May 12 10:37:04 UTC 2025
On Mon, 12 May 2025 01:17:15 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/CharSequence.java line 313:
>>
>>> 311: * at index {@code dstBegin} and ending at index:
>>> 312: * <pre>{@code
>>> 313: * dstbegin + (srcEnd-srcBegin) - 1
>>
>> Shouldn't it be dstBegin?
>>
>> * dstBegin + (srcEnd-srcBegin) - 1
>
> Hello Andrey, what you note is right. This and the other change you have proposed to this text seems reasonable. Do you want to create a JBS issue and raise a PR proposing this change?
We could also simply include it in the PR for https://bugs.openjdk.org/browse/JDK-8356679 to reduce organizational overhead.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21730#discussion_r2084384684
More information about the nio-dev
mailing list