RFR: 8274383 JNI call of getAccessibleSelection on a wrong thread
Anton Tarasov
ant at openjdk.java.net
Tue Sep 28 16:23:31 UTC 2021
On Tue, 28 Sep 2021 09:47:02 GMT, Artem Semenov <github.com+36081106+savoptik at openjdk.org> wrote:
> [ComboBoxAccessibility accessibilityValue] defines the getAccessibleSelection method on the AccessibleContext class, however the call should go through CAccessibility so that it is executed on the Event Dispatch thread.
src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/ComboBoxAccessibility.m line 53:
> 51: if (axContext == NULL) return nil;
> 52: GET_ACCESSIBLESELECTION_METHOD_RETURN(nil);
> 53: jobject axSelection = (*env)->CallStaticObjectMethod(env, sjc_CAccessibility, sjm_getAccessibleSelection, axContext, self->fComponent);
Please delete `axSelection` if you forgot.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5735
More information about the client-libs-dev
mailing list