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

Need complete fix for Java2D Hi-DPI code in JFXPanel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • 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.

            flar Jim Graham
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: