JDK-8169285 : Re-enable javafx.swt tests
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: 9,jfx24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-11-04
  • Updated: 2025-09-13
  • Resolved: 2025-05-22
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.
Other
jfx25 b19Fixed
Related Reports
Relates :  
Description
The javafx.swt tests were not set up to run in Jigsaw mode. With JDK-8161704 we now always build and test with a Jigsaw-aware JDK 9, so the javafx.swt tests are disabled. We should fix and re-enable them.
Comments
Changeset: 9950d33c Branch: master Author: Marius Hanl <mhanl@openjdk.org> Date: 2025-05-22 19:37:24 +0000 URL: https://git.openjdk.org/jfx/commit/9950d33ccdb1edd61b4a15019f25603e65fa863b
22-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1783 Date: 2025-04-16 18:48:09 +0000
16-04-2025

I note that we still want to make the running of these tests conditional on the `SWT_TEST` gradle flag.
15-04-2025

The original issue that caused the SWT tests to be disabled is no longer relevant. As of JavaFX 11, we are decoupled from the JDK so the fact that we build JavaFX modules with a modular JDK is not a problem any longer. The SWT tests were ported to JUnit 5 as part of JDK-8354455 (which removes support for JUnit 4), and some initial testing was done that shows that these tests now work on Windows and Linux. There are additional threading issues on macOS that may need to be addressed before it can be enabled on macOS. If so, a follow-up bug could be filed for macOS.
15-04-2025