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

[TEST] TextNodeTest unit test fails becase FX runtime isn't initialized

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: javafx

      Backports

        Description

        I discovered this bug while testing the fix for JDK-8087793

        TextNodeTest is a system test, meaning that it run with the full FX runtime, and needs to ensure that the FX runtime is initialized before constructing a scene graph. This test calls Text.setText(), which gets the system font to measure the text for bounds computations. After the fix for JDK-8087793, getting the system font needs to get the screen UI scale, which is not valid until after the FX runtime is initialized. This will not cause problems for well-formed applications, it just means that Text joins a long line of other nodes (including all controls) that fail in the same way.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kcr Kevin Rushforth
                  Reporter:
                  kcr Kevin Rushforth
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: