Abhishek Kumar
Abhishek Kumar
> > I think the check is to ensure the passed index parameter is to verify the boundary of text length. > > Yes, but the index passed to the...
> > The spec says > > What spec in particular? https://docs.oracle.com/en/java/javase/24/docs/api/java.desktop/javax/accessibility/AccessibleText.html#getBeforeIndex(int,int) It says, `index - an index within the text` for the `getBeforeIndex` method description
@aivanov-jdk @azuev-java As per the discussion with @mrserb [here](https://github.com/openjdk/jdk/pull/25941#issuecomment-3003204161), it seems this is not an issue with the code. I would like to know about your opinion ? If this...
> At the same time, I agree that all implementations of AccessibleText need updating to be consistent. I checked with the implementation of `getAtIndex, getBeforeIndex and getAfterIndex` APIs and these...
>I said it a few times now, “an index within the text” is a vague condition, we should update the specification so that it is clear which indexes are valid....
There are similar APIs `getTextSequenceAt, getTextSequenceBefore and getTextSequenceAfter` for `AccessibleExtendedText` interface that invokes `getSequenceAtIndex` to return the `AccessibleTextSequence` and I think the fix is required for those method as well....