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

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Feb 3 12:33:58 UTC 2023


On Fri, 3 Feb 2023 12:20:53 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> It seems the order of sequence is
>> listener->State.STARTED->doInBackground->listener->DONE->done
>
>> It seems the order of sequence is listener->State.STARTED->doInBackground->listener->DONE->done
> 
> Yes, but the different order is specified: listener(STARTED) -> doInBackground -> done -> listener(DONE).

But then it will violate
https://github.com/openjdk/jdk/blob/810c8a271b4524ae776e2306ef699e04a7d145a2/src/java.desktop/share/classes/javax/swing/SwingWorker.java#L288-L293

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

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



More information about the client-libs-dev mailing list