JDK-8150064 : Need complete fix for Java2D Hi-DPI code in JFXPanel
  • Type: Bug
  • Component: javafx
  • Sub-Component: swing
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-02-17
  • Updated: 2016-08-19
  • Resolved: 2016-08-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Blocks :  
Duplicate :  
Relates :  
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.


JDK-8091832 has been integrated so this source code problem is no longer an issue...

This will be fixed as part of JDK-8091832. I will close it as a duplicate when that fix goes in.