RFR: 8088343: Intermittent unit test failure in javafx.concurrent.ServiceLifecycleTest [v2]

Andy Goryachev angorya at openjdk.org
Wed Apr 16 20:05:03 UTC 2025


On Wed, 16 Apr 2025 16:23:14 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>> 
>>  - Merge remote-tracking branch 'origin/master' into 8088343.lifecycle
>>  - 8088343
>
> modules/javafx.graphics/src/main/java/javafx/concurrent/Task.java line 1021:
> 
>> 1019:                 switch (getState()) {
>> 1020:                 case FAILED:
>> 1021:                 case SUCCEEDED:
> 
> Avoiding transitioning from a one of the completion states to canceled is a good thing. My question, though is: how did we get here? Is this masking some other problem?

I think the variations in the test timing uncovered this issue.  I don't think it's a problem with the execution of the task, but rather with the reporting of its final state.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1769#discussion_r2047660750


More information about the openjfx-dev mailing list