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

Mac: Glass executes events from nested event loop even after nested event loop has terminated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx
    • Mac OS X 10.7

      Stage.showAndWait(), which is implemented using nested event loops in Glass, is specified to return from showAndWait() after the stage has been hidden (which will terminate the nested event loop) and the event being processed returns to the event loop. The event loop should exit, causing showAndWait() to return before any subsequent events are processed.

      While writing / updating the unit test for this, I discovered that while this works as expected on Windows, it does not work correctly on Mac (or Linux).

      The attached ShowAndWaitTest.java test program, which is an updated version of the existing unit test in rt-closed/tests/app-lifecycle/LifeCycleTests/test/javafx/stage/ , will reproduce this bug. I haven't pushed the updated version to the repo yet.

            anthony Anthony Petrov (Inactive)
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: