-
Bug
-
Resolution: Not an Issue
-
P2
-
1.4.0, 1.4.2_07, 6
-
generic, x86
-
generic, windows_98, windows_xp
The following minimized sample deadlocks
import java.awt.*;
public class Dispose {
public static void main(String[] args) {
Frame frame = new Frame();
frame.setSize(100, 100);
frame.setVisible(true);
synchronized (frame.getTreeLock()) {
frame.dispose();
}
}
}
If user calls dispose from some awt method which holds TreeLock it
causes deadlock even if the user code doesn't get TreeLock itself.
import java.awt.*;
public class Dispose {
public static void main(String[] args) {
Frame frame = new Frame();
frame.setSize(100, 100);
frame.setVisible(true);
synchronized (frame.getTreeLock()) {
frame.dispose();
}
}
}
If user calls dispose from some awt method which holds TreeLock it
causes deadlock even if the user code doesn't get TreeLock itself.
- relates to
-
JDK-4489392 "removeNotify" is not called when the component of JApplet is closed within IE
- Closed