RFR: 8324658: Allow animation play/start/stop/pause methods to be called on any thread

Nir Lisker nlisker at openjdk.org
Sat Jan 27 00:09:46 UTC 2024


On Fri, 26 Jan 2024 23:59:50 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

> Added a utility method to run code on the FX thread if it's not already, and changed the animation methods to use it.

The tests from [JDK-8159048](https://bugs.openjdk.org/browse/JDK-8159048) should either be removed or reworked. @kevinrushforth Should I just check that calling the specified methods both from the FX thread and from a background thread end up executing on the FX thread?

Running
`./gradlew :systemTests:test --tests test.com.sun.javafx.animation.AnimationTest` still succeeds for me for some reason even after a clean. Is there something missing here?

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

PR Comment: https://git.openjdk.org/jfx/pull/1352#issuecomment-1912852044


More information about the openjfx-dev mailing list