-
Bug
-
Resolution: Fixed
-
P3
-
7
The test code:
import java.awt.*;
public class Test {
public static void main(String[] args) throws Exception {
final Frame f = new Frame("F");
final FileDialog fd = new FileDialog(f);
// final Dialog fd = new Dialog(f, true);
new Thread(new Runnable() {
public void run() {
fd.setVisible(true);
}
}).start();
Thread.sleep(3000);
System.err.println("before dispose");
System.err.flush();
fd.dispose();
System.err.println("after dispose");
System.err.flush();
new Thread(new Runnable() {
public void run() {
System.err.println("run");
System.err.flush();
}
}).start();
System.err.println("thread started");
System.err.flush();
f.dispose();
}
}
hangs/crashes JVM that was built by MSVS2008/2010
import java.awt.*;
public class Test {
public static void main(String[] args) throws Exception {
final Frame f = new Frame("F");
final FileDialog fd = new FileDialog(f);
// final Dialog fd = new Dialog(f, true);
new Thread(new Runnable() {
public void run() {
fd.setVisible(true);
}
}).start();
Thread.sleep(3000);
System.err.println("before dispose");
System.err.flush();
fd.dispose();
System.err.println("after dispose");
System.err.flush();
new Thread(new Runnable() {
public void run() {
System.err.println("run");
System.err.flush();
}
}).start();
System.err.println("thread started");
System.err.flush();
f.dispose();
}
}
hangs/crashes JVM that was built by MSVS2008/2010
- duplicates
-
JDK-6937667 JavaStringBuffer class is unsafe
- Closed