JDK-8220349 : The fix done for JDK-8214253 have caused issues in JTree behaviour
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,8u221,11,11.0.4-oracle,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-08
  • Updated: 2019-12-23
  • Resolved: 2019-04-04
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.
JDK 11 JDK 12 JDK 13 JDK 8 Other
11.0.4-oracleFixed 12.0.2Fixed 13 b17Fixed 8u221Fixed openjdk8u222Fixed
Related Reports
Relates :  
Description
The fix done for JDK-8214253 have caused issues in JTree behaviour. If the JTree node is selected, its background and text color become white and nothing is readable. 

Root Cause: The changes done in gtk3_paint_flat_box for JDK-8214253 have caused this issue. The issue can be fixed by making the changes specific to TOOL_TIP. We dont want to  write the code present in transform_details for other widgets like JTree cells. 
Comments
Fix Request This issue solves the regression introduced by the backport of JDK-8214253. Patch applies cleanly to 12u, 11u and 8u (with reshuffling). SwingSet2 tree demo reproduces the failure in all three versions (8u requires -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Djdk.gtk.version=3). The failure is gone in all three versions after the patch. The risk is low.
08-04-2019