Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6493680
Votes 0
Synopsis SwingWorker notifications might be out of order.
Category java:classes_swing
Reported Against
Release Fixed 7(b07), 6u1(b01) (Bug ID:2143846)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs
Submit Date 14-NOV-2006
Description
SwingWorker notifications might be out of order.

After the fix for 6449017 [SwingWorker performance is sluggish] some
of the SwingWorker notifications come by a different route than
before. While the spec does not provide any guarantees about the order
asynchronous notifications are to be handled the usual expectation is
notification which is sent later is to be handled later. After that
fix it is not the case any more. SwingWorker might receive " customer "
property change after done method is invoked for example.
Posted Date : 2006-11-14 20:27:28.0
Work Around
N/A
Evaluation
I suggest to publish all the SwingWorker notifications using the new mechanism introduced in the fix for  6449017 [SwingWorker performance is sluggish]. This will guarantee the expected order.
Posted Date : 2006-11-14 20:30:19.0
Comments
  
  Include a link with my name & email   

Submitted On 01-JUL-2008
I'm still getting this but -- a progress event sometimes arrives after the done event to my propertyChangeListeners on the SwingWorker.   Progress is reported in doInBackground(), done events should only be triggered after that method finishes, so they shouldn't arrive out of order to the listener.  I'm using:

 Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Client VM (build 11.0-b12, mixed mode, sharing)

Christopher



PLEASE NOTE: JDK6 is formerly known as Project Mustang