classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Fixing inaccurate work of javax.swing.Timer


From: Meskauskas Audrius
Subject: [cp-patches] Fixing inaccurate work of javax.swing.Timer
Date: Wed, 23 Feb 2005 18:17:31 +0100

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]