On Fri, 23 Jan 2026 13:40:21 GMT, Alexey Ivanov <[email protected]> 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

Reply via email to