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

Sergey Bylokhov serb at openjdk.org
Thu Feb 2 20:48:27 UTC 2023


On Wed, 1 Feb 2023 22:40:14 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Why do you think so?
> 
> The `done` method hasn't thrown `CancellationException`, and it will not. If it had thrown the exception, Prasanta's test would've caught it.

But the `done` methods which call "get" will start to throw that exception, right? Implementation of "done" method in the jconsole actually calls "get". Is that pattern could be common?

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

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



More information about the client-libs-dev mailing list