<AWT Dev> RFR: 8263846: Bad JNI lookup getFocusOwner in accessibility code on Mac OS X [v2]
Alexander Zuev
kizune at openjdk.java.net
Sat Mar 20 14:01:52 UTC 2021
On Sat, 20 Mar 2021 02:13:46 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> 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 1459:
>
>> 1457: {
>> 1458: JNIEnv *env = [ThreadUtilities getJNIEnv];
>> 1459: GET_CACCESSIBILITY_CLASS_RETURN(nil);
>
> Is it caused by the JDK-8257853? Should we update the accessibilityIndexOfChild as well?
It made it visible however it is just a good practice not to assume that class reference is already initialized before using it. So, yes, while i was not seeing any failures in accessibilityIndexOfChild i might fix it as well.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3099
More information about the awt-dev
mailing list