-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0
-
beta
-
sparc
-
solaris_2.5.1
Name: aaC67449 Date: 06/04/99
The JToolBar.remove() method throws StackOverflowError.
See example:
----------------- example -----------
import javax.swing.*;
import java.awt.event.*;
public class Test {
public static void main(String argv[]) {
JToolBar c = new JToolBar();
JButton test = c.add(new MyAction());
c.remove(test);
System.out.println("Ok");
}
}
class MyAction extends AbstractAction {
public void actionPerformed(ActionEvent e){}
}
-------------- jdk1.3 output -----------
Exception in thread "main" java.lang.StackOverflowError
at java.awt.Container.remove(Container.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
at java.awt.Container.remove(Container.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
at java.awt.Container.remove(Container.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
at javax.swing.JToolBar.remove(JToolBar.java, Compiled Code)
...
======================================================================