[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Integrated: 8081474: SwingWorker calls 'done' before the 'doInBackground' is finished
From:       Prasanta Sadhukhan <psadhukhan () openjdk ! org>
Date:       2023-02-27 9:24:17
Message-ID: ALMrK3was3ERY2zQQOzZRP7DjaATvDmPw0JnQuDhzoQ=.4467534b-bf98-4d03-850d-5e249aa59c55 () github ! com
[Download RAW message or body]

On Wed, 11 Jan 2023 11:01:18 GMT, Prasanta Sadhukhan <psadhukhan@openjdk.org> wrote:

> SwingWorker done() method [spec \
> ](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/SwingWorker.java#L452) \
> says "Executed on the Event Dispatch Thread after the doInBackground method is \
> finished" but there's no mechanism in place to honor that claim.
> The [spec](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/SwingWorker.java#L289)
>  also says the state should be DONE after doInBackground() returns which is also \
> not done. 
> Modified the code to honour the specification.

This pull request has now been integrated.

Changeset: dbb5581e
Author:    Prasanta Sadhukhan <psadhukhan@openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dbb5581eba5d765bca95585ba91f9b0eee9d1f57
                
Stats:     161 lines in 2 files changed: 152 ins; 6 del; 3 mod

8081474: SwingWorker calls 'done' before the 'doInBackground' is finished

Reviewed-by: aivanov, serb

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic