On Sat, 20 Mar 2021 14:01:51 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:

>> 8263846: Bad JNI lookup getFocusOwner in accessibility code on Mac OS X
>
> Alexander Zuev has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Fixing accessibilityIndexOfChild in the same way

src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m 
line 802:

> 800: 
> 801:     JNIEnv *env = [ThreadUtilities getJNIEnv];
> 802:     GET_CACCESSIBILITY_CLASS_RETURN(0);

This isn't necessary. Because the line below takes care of it. The definition 
looks like
#define GET_ACCESSIBLEINDEXINPARENT_STATIC_METHOD_RETURN(ret) \
    GET_CACCESSIBILITY_CLASS_RETURN(ret); \
    GET_STATIC_METHOD_RETURN(sjm_getAccessibleIndexInParent, 
sjc_CAccessibility, "getAccessibleIndexInParent", \
                             
"(Ljavax/accessibility/Accessible;Ljava/awt/Component;)I", ret);

-------------

PR: https://git.openjdk.java.net/jdk/pull/3099

Reply via email to