RFR: 8360070: AccessibleText.getBeforeIndex returns null for last character

Sergey Bylokhov serb at openjdk.org
Wed Jun 25 17:19:30 UTC 2025


On Wed, 25 Jun 2025 04:43:14 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

> So, if someone wants to retrieve the first or last character, they shouldn't rely on `getAfterIndex and getBeforeIndex` method respectively, rather use `getAtIndex` method to get the first and last character with index passed as 0 and length -1 respectively.
> 
> Right ?

That is my understanding.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25941#issuecomment-3005562699


More information about the client-libs-dev mailing list