RFR: 8335470: [XWayland] JavaFX tests that use AWT Robot fail on Wayland

Kevin Rushforth kcr at openjdk.org
Tue Dec 10 16:26:57 UTC 2024


On Tue, 10 Dec 2024 14:10:23 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> This PR enables several previously disabled test cases for Wayland, as the required fixes are already in the promoted build. ([JDK-8335469](https://bugs.openjdk.org/browse/JDK-8335469), [JDK-8335468](https://bugs.openjdk.org/browse/JDK-8335468))

tests/system/src/test/java/test/robot/javafx/embed/swing/LinuxScreencastHangCrashTest.java line 59:

> 57:     @BeforeAll
> 58:     public static void init() throws Exception {
> 59:         Assumptions.assumeTrue(!Util.isOnWayland()); // JDK-8335470

You need to replace this with a version check for JDK >= 24 rather than just removing it or else this will fail (probably hang) when the tests are run on JDK 23. See [this JBS comment](https://bugs.openjdk.org/browse/JDK-8335470?focusedId=14722937&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14722937).

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1661#discussion_r1878241310


More information about the openjfx-dev mailing list