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

Modal dialogs resumes the calling thread before it's hidden

    Details

    • Subcomponent:
    • Resolved In Build:
      b114
    • CPU:
      generic, x86
    • OS:
      generic, linux_redhat_5.0, solaris, windows, windows_xp, windows_7
    • Verification:
      Verified

      Description

      Execute the following simple test:

      import java.awt.*;

      public class slash {
        public static void main(String[] args) {
          FileDialog fd = new FileDialog((Frame)null, "save", FileDialog.SAVE);
          fd.setVisible(true);
          System.err.println("dir: " + fd.getDirectory());
        }
      }

      Note that the dialog is modal, so System.err.println() should be executed after the dialog is hidden/disposed. However, even if the dialog is still visible, the current directory is printed to console in ~5 secs after the dialog is shown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                art Artem Ananiev
                Reporter:
                art Artem Ananiev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: