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

Alexander Zuev kizune at openjdk.org
Wed Dec 3 21:05:11 UTC 2025


On Wed, 3 Dec 2025 03:41:47 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Perform null check before requesting information for the popup component and return nil if component is no longer exists.
>
> 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.

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

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


More information about the client-libs-dev mailing list