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

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Feb 10 15:02:22 UTC 2023


> 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.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Space rectify

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/11940/files
  - new: https://git.openjdk.org/jdk/pull/11940/files/f5cc5859..6776db17

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11940&range=16
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11940&range=15-16

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/11940.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11940/head:pull/11940

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



More information about the client-libs-dev mailing list