8263846: Bad JNI lookup getFocusOwner in accessibility code on Mac OS X

Reviewed-by: azvegint, prr
This commit is contained in:
Alexander Zuev 2021-03-20 17:58:28 +00:00
parent cb742f9560
commit 118a49fc96

View File

@ -1456,6 +1456,7 @@ static NSNumber* JavaNumberToNSNumber(JNIEnv *env, jobject jnumber) {
- (id)accessibilityFocusedUIElement
{
JNIEnv *env = [ThreadUtilities getJNIEnv];
GET_CACCESSIBILITY_CLASS_RETURN(nil);
DECLARE_STATIC_METHOD_RETURN(jm_getFocusOwner, sjc_CAccessibility, "getFocusOwner",
"(Ljava/awt/Component;)Ljavax/accessibility/Accessible;", nil);
id value = nil;