On Wed, 28 May 2025 15:25:40 GMT, Artem Semenov <aseme...@openjdk.org> wrote:
>> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Minor update > > src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/MenuAccessibility.m line > 65: > >> 63: GET_CACCESSIBILITY_CLASS_RETURN(nil); >> 64: DECLARE_STATIC_METHOD_RETURN(sjm_getCurrentAccessiblePopupMenu, >> sjc_CAccessibility, >> 65: "getCurrentAccessiblePopupMenu", > > Won’t it be possible to get the correct object like this, as it’s done in > ```outlineRowAccessibility.m```? > > jobject currentAccessible = [self currentAccessibleWithENV:env]; I tried to utilize this method but `getCurrentAccessiblePopupMenu ` throws NPE. `java.lang.NullPointerException: Cannot invoke "sun.swing.SwingAccessor$AccessibleComponentAccessor.getCurrentAccessible(javax.accessibility.AccessibleContext)" because the return value of "sun.swing.SwingAccessor.getAccessibleComponentAccessor()" is null` ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25470#discussion_r2113286295