RFR: 8372757: MacOS, Accessibility: Crash in [MenuAccessibility accessibilityChildren] after JDK-8341311 [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Dec 4 02:11:58 UTC 2025


On Wed, 3 Dec 2025 21:02:21 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/MenuAccessibility.m line 71:
>> 
>>> 69:                                                              fAccessible, fComponent);
>>> 70: 
>>> 71:     if (axComponent == nil) {
>> 
>> Dont we need to call `CHECK_EXCEPTION()` as we were calling JNI?
>
> Sure, adding check.

I might be wrong as CAccessibility already catches the exception it seems but no harm checking I guess

https://github.com/openjdk/jdk/blob/04c0f8d359a3f450ac2070c6d41834145d9c75f7/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java#L131-L136

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28614#discussion_r2587182186


More information about the client-libs-dev mailing list