RFR: 8284690: [macos] VoiceOver : Getting java.lang.IllegalArgumentException: Invalid location on Editable JComboBox
Sergey Bylokhov
serb at openjdk.java.net
Sat May 21 06:50:40 UTC 2022
On Fri, 20 May 2022 21:13:35 GMT, Alexander Zuev <kizune at 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
More information about the client-libs-dev
mailing list