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

Nir Lisker nlisker at openjdk.org
Mon Jan 29 23:00:45 UTC 2024


On Mon, 29 Jan 2024 22:13:25 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> I don't think the executor service catches the exception because if it did then the `AnimationTimer` test would also always pass. I do get the AIOOB exceptions from the background thread caught in the handler (which fails the test). This test is rather stable for me. The `Animation` one is more problematic, sometimes failing and sometimes not when it should fail.
>
> Based on the testing I did, the executor service does prevent at least some exceptions that happen on the test thread from reaching the uncaught exception handler. An explicit try/catch will catch those.

Alright, will implement the change.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1352#discussion_r1470335752


More information about the openjfx-dev mailing list