RFR: 4938801: The popup does not go when the component is removed [v8]

Alexey Ivanov aivanov at openjdk.org
Fri Jan 23 13:43:47 UTC 2026


On Thu, 22 Jan 2026 23:44:25 GMT, Michael Bien <duke at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Rename listener class
>
> 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.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26407#discussion_r2721237138


More information about the client-libs-dev mailing list