<AWT Dev> RFR: 8263846: Bad JNI lookup getFocusOwner in accessibility code on Mac OS X [v2]
Phil Race
prr at openjdk.java.net
Sat Mar 20 17:10:39 UTC 2021
On Sat, 20 Mar 2021 13:57:21 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> 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.
If this was missed in the JNF work, add the label "jnf" to the bug.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3099
More information about the awt-dev
mailing list