-
Enhancement
-
Resolution: Fixed
-
P3
-
jfx22
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8325183 | jfx22.0.1 | Nir Lisker | P3 | Resolved | Fixed | b04 |
JDK-8324952 | jfx22 | Nir Lisker | P3 | Resolved | Fixed | b28 |
Animation:
play
pause
stop
AnimationTimer
start
stop
Since implementing that approach we have become aware of compatibility issues where applications that create a timeline as part of a scene graph on a background thread start playing that animation by calling play on that same background thread. Those applications would largely run without problems as long as they didn't also call pause or stop on the background thread.
This RFE proposes a solution that avoids the threading problems that existed prior to JavaFX 22 without introducing the compatibility problems that the threading restriction implemented in
The solution will be to document that the methods in question can be called on any thread, and that the implementation of those methods will be ensure that they are run on the JavaFX application thread. The implementation will then check the thread and wrap the implementation in a runLater if not already on the JavaFX application thread.
- backported by
-
JDK-8324952 Allow animation play/start/stop/pause methods to be called on any thread
-
- Resolved
-
-
JDK-8325183 Allow animation play/start/stop/pause methods to be called on any thread
-
- Resolved
-
- csr for
-
JDK-8324796 Allow animation play/start/stop/pause methods to be called on any thread
-
- Closed
-
- relates to
-
JDK-8324219 Remove incorrect documentation from Animation methods
-
- Closed
-
-
JDK-8159048 Animation and AnimationTimer methods must be called on JavaFX Application thread
-
- Closed
-
-
JDK-8328136 Create release notes for JavaFX 22
-
- Resolved
-
- links to
-
Commit openjdk/jfx/648dfd54
-
Commit openjdk/jfx/c5ab220b
-
Review openjdk/jfx/1352
-
Review openjdk/jfx/1354