Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6969851

VM hangs/crashes in FileDilog test (VS2008/2010 build)

XMLWordPrintable

    • beta
    • 7
    • b105
    • generic, x86
    • generic, windows
    • Verified

      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

            uta Alexey Utkin (Inactive)
            uta Alexey Utkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: