JDK-8338668 : Test javax/swing/JFileChooser/8080628/bug8080628.java doesn't test for GTK L&F
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2024-08-20
  • Updated: 2024-12-03
  • Resolved: 2024-08-27
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 17 JDK 21 JDK 24
11.0.27-oracleFixed 17.0.15-oracleFixed 21.0.7-oracleFixed 24 b13Fixed
Related Reports
Relates :  
Description
javax/swing/JFileChooser/8080628/bug8080628.java test doesn't test for GTK L&F as it requires a headful system to test. 

Ran the test and observed that it skipped testing for GTK on headless system.

Testing L&F: javax.swing.plaf.nimbus.NimbusLookAndFeel
Testing L&F: com.sun.java.swing.plaf.motif.MotifLookAndFeel
Unsupported L&F: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Test passed

Expected: should be run on headful system to test GTK L&F functionality.


Comments
Changeset: b8e8e965 Branch: master Author: Abhishek Kumar <abhiscxk@openjdk.org> Date: 2024-08-27 04:15:08 +0000 URL: https://git.openjdk.org/jdk/commit/b8e8e965e541881605f9dbcd4d9871d4952b9232
27-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20671 Date: 2024-08-22 05:24:24 +0000
22-08-2024

This test should have failed with the changeset [1] proposed for JDK-4795384 but it didn't because GTK look and feel isn't supported in headless environment. [1] https://github.com/openjdk/jdk/pull/20612
20-08-2024