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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 8u60, 9
    • javafx

        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.

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

                Created:
                Updated:
                Resolved: