On Thu, 10 Apr 2025 21:22:21 GMT, Andy Goryachev <ango...@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 <ango...@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