[Top][All Lists]
[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
basic.java
Description: Binary data
Timer.java.diff
Description: Binary data
- [cp-patches] Fixing inaccurate work of javax.swing.Timer,
Meskauskas Audrius <=