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

Sergey Bylokhov serb at openjdk.org
Thu Feb 2 21:09:26 UTC 2023


On Thu, 2 Feb 2023 20:45:33 GMT, Sergey Bylokhov <serb 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?

I see your point now, yes that should not be a problem.

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

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



More information about the client-libs-dev mailing list