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

2023-02-09 Thread Alexey Ivanov
On Wed, 8 Feb 2023 05:45:43 GMT, Prasanta Sadhukhan wrote: > > Since a CSR is required, I suggest updating the spec for `isDone` method so > > that it returns `true` only after `doInBackground` exits. Now `isDone` > > returns `true` after `cancel` completes but the `DONE` state isn't reached

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

2023-02-07 Thread Prasanta Sadhukhan
On Tue, 7 Feb 2023 17:16:41 GMT, Alexey Ivanov wrote: > Since a CSR is required, I suggest updating the spec for `isDone` method so > that it returns `true` only after `doInBackground` exits. Now `isDone` > returns `true` after `cancel` completes but the `DONE` state isn't reached > yet. My

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

2023-02-07 Thread Alexey Ivanov
On Fri, 3 Feb 2023 14:13:34 GMT, Prasanta Sadhukhan 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

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

2023-02-03 Thread Prasanta Sadhukhan
> 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