RFR: 8081474: SwingWorker calls 'done' before the 'doInBackground' is finished [v10]

Sergey Bylokhov serb at openjdk.org
Thu Feb 2 21:31:28 UTC 2023


On Thu, 2 Feb 2023 21:17:23 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Valid concern.
>> 
>> I mentioned it before [here](https://github.com/openjdk/jdk/pull/11940#issuecomment-1407690445), yet I forgot about this later on.
>> 
>> Changing the order of the calls should be enough.
>> 
>> I guess we should verify this condition in the test, what do you think?
>
> But it did not work as expected before the fix as well since the "notification and done" work in parallel anyway.

It could be tested by flushing and blocking the EDT in the listener. That will allow us to check the order of events posted from the listener and from the "doneEDT".

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

PR: https://git.openjdk.org/jdk/pull/11940



More information about the client-libs-dev mailing list