On Fri, 20 May 2022 21:13:35 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:
> Check for the available range on the document model and adjust text range > request accordingly. src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibleText.java line 293: > 291: int currentLength = aet.getCharCount(); > 292: return aet.getTextRange(Math.min(currentLength, > location), > 293: Math.min(currentLength, location + length)); It will be good to update the spec of the AccessibleEditableText by this or separate PR, right now it does not mention any exceptions. ------------- PR: https://git.openjdk.java.net/jdk/pull/8820