Integrated: 8088343: Race condition in javafx.concurrent.Task::cancel

Andy Goryachev angorya at openjdk.org
Thu Apr 24 14:42:07 UTC 2025


On Thu, 10 Apr 2025 21:22:21 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> The code should not set the `Task.state` value to `CANCELLED` if the said task is already `SUCCEEDED` or `FAILED`.
> 
> This is a product bug.
> 
> Added `@RepeatedTest(50)` to the tests that used to fail intermittently - this made the test failed more reliably without the fix.

This pull request has now been integrated.

Changeset: 48240dab
Author:    Andy Goryachev <angorya at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/48240dab9860728ca12f96b7cbdc4dca1d7414f2
Stats:     59 lines in 2 files changed: 35 ins; 14 del; 10 mod

8088343: Race condition in javafx.concurrent.Task::cancel

Reviewed-by: kcr, arapte

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

PR: https://git.openjdk.org/jfx/pull/1769


More information about the openjfx-dev mailing list