Need complete fix for Java2D Hi-DPI code in JFXPanel

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: javafx
    • None

      This is a follow-on bug to JDK-8149967.

      In order to allow JavaFX to compile on both JDK 8 and JDK 9 while we transition to JDK 9 as the boot JDK, I added a short-term fix for a compilation problem caused by a Java2D change to an internal method that JFXPanel was using. That fix uses reflection to call SurfaceData::getDefaultScaleX rather than the now-removed SurfaceData::getDefaultScale method.

      Once JDK-8149964 is implemented to switch our required boot JDK to JDK 9, the reflection code can be removed and replaced with something more suitable. I had suggested calling both getDefaultScaleX and getDefaultScaleY, but Sergey pointed out that this information might be available using public API.

            Assignee:
            Jim Graham
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: