The javax.swing.Timer fires action events. It has two properties, one specifying the waiting time before firing the first action event, and another the time gap between firing the subsequent events.

The new Mauve test ("basic") has indicated unusually inaccurate work of this class. The first action event is fired far later than requested.

From the source code it seems that the first sheduled action is not fired at
all. The Timer only fires the second and subsequent actions.

The bug can be fixed by an extra line of code.

The Mauve test that found this is attached to this letter. I am not sure if it is worthwhile to include it to the Mauve project as it takes as many as five seconds to complete.

Audrius Meskauskas

Attachment: basic.java
Description: Binary data


Attachment: Timer.java.diff
Description: Binary data

_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to