-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
Name: rk38400 Date: 11/10/98
the following function removes the object 'item' from the listenerRegistry twice. this cause an exception to be throw on
the second remove() call
public void remove(JMenuItem item) {
popupMenu.remove(item);
if (listenerRegistry != null) {
#1---> ActionChangedListener p = (ActionChangedListener) listenerRegistry.remove(item);
#2---> Action a = (Action)listenerRegistry.remove(p);
item.removeActionListener(a);
if (p!=null)
p.setTarget(null);
if (a!=null)
a.removePropertyChangeListener(p);
}
}
(Review ID: 42292)
======================================================================
- duplicates
-
JDK-4188844 problem with JMenu.remove( JMenuItem)
- Closed