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

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jan 31 15:34:47 UTC 2023


On Tue, 31 Jan 2023 14:48:30 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Dont think so...If `doInBackground `is true it should mean cleanup is done as `doInBackground ` is false by default
>
> That's the thing. If `cancel` doesn't wait until `doInBackground` completes, which *it shouldn't do*, then `cancel` returns quickly. Therefore the main thread reaches this condition before the “cleanup” in `doInBackground` finishes, as such the test should always fail.
> 
> Do I miss anything?

ok..understood...modified...

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

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



More information about the client-libs-dev mailing list