Withdrawn: 8360070: AccessibleText.getBeforeIndex returns null for last character
Kevin Rushforth
kcr at openjdk.org
Mon Aug 18 21:11:52 UTC 2025
On Mon, 23 Jun 2025 17:40:42 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
> `AccessibleText.getBeforeIndex` method returns `null for last characte`r due to the **wrong boundary value condition check**.
> This method returns `null` when the `passed index parameter` is equal to `text's length` which is incorrect.
> `getBeforeIndex` method should return `null` only if the **passed index parameter is less than 0 and greater than the text's length**.
>
> After modifying the condition check, expected character is returned. Test is added to verify the check,
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/25941
More information about the client-libs-dev
mailing list