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

[TOYS] Fix HelloLaunchOnNewThread print statements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac
      Tested with 8u-dev Hudson build #783

      Description

      1. Run HelloLaunchOnNewThread on Mac (this may or may not be reproducible on other platforms).
      2. Observe that only the following messages are printed initially:

      **********************************************************************************************
      Main thread exiting: currentThread=main
      Calling Application.launch from currentThread=Thread-4
      LAUNCHING...Constructor: currentThread=JavaFX Application Thread
      init: currentThread=JavaFX-Launcher
      start: currentThread=JavaFX Application Thread
      **********************************************************************************************

      3. The HelloRectangle comes up as expected and works fine.
      4. After I press Cmd+Q to exit the app, I see the following output on the console:

      **********************************************************************************************
      cancel: currentThread=JavaFX Application Thread
      DONE: elapsed time = 10522 msec
      You should now see the 'HelloWorld' rectangle in the window
      **********************************************************************************************

      and then the app exits.

      I'd expect to see the last line ("You should now see...") to be printed much earlier, when the HelloRectangle is actually displaying on the screen.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: