RFR: 8299412 JNI call of getAccessibleActionCount on a wrong thread
SWinxy
duke at openjdk.org
Thu Dec 29 19:42:49 UTC 2022
On Thu, 29 Dec 2022 15:54:43 GMT, Artem Semenov <asemenov at openjdk.org> wrote:
> [CommonComponentAccessibility getActionsWithEnv:] defines the getAccessibleActionCount method on the AccessibleAction class, however the call should go through CAccessibility so that it is executed on the Event Dispatch thread.
>
> @azuev-java @mrserb @prrace please review
src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java line 530:
> 528: return aa.getAccessibleActionCount();
> 529: }
> 530: }, c);
There's a more compact way of doing this:
Suggestion:
return invokeAndWait(aa::getAccessibleActionCount, c);
-------------
PR: https://git.openjdk.org/jdk/pull/11803
More information about the client-libs-dev
mailing list