RFR: 4938801: The popup does not go when the component is removed [v8]
Michael Bien
duke at openjdk.org
Wed Jan 28 13:54:06 UTC 2026
On Fri, 23 Jan 2026 13:40:21 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/JPopupMenu.java line 963:
>>
>>> 961: oldInvoker.removePropertyChangeListener("ancestor", propListener);
>>> 962: }
>>> 963: invoker.addPropertyChangeListener("ancestor", propListener);
>>
>> fyi: this will now throw NPEs on `setInvoker(null)` when it enters this section. (https://github.com/apache/netbeans/issues/9155)
>
> Prasanta @prsadhuk created a JBS bug report, [JDK-8376169](https://bugs.openjdk.org/browse/JDK-8376169), the fix for which is being reviewed in #29377.
@aivanov-jdk Thanks! I built the PR you linked and can confirm that it resolves the NPE. Do you think the fix will be also backported to JDK 26?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26407#discussion_r2736736446
More information about the client-libs-dev
mailing list