harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qi...@apache.org
Subject svn commit: r834293 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java
Date Tue, 10 Nov 2009 01:38:00 GMT
Author: qiuxx
Date: Tue Nov 10 01:38:00 2009
New Revision: 834293

URL: http://svn.apache.org/viewvc?rev=834293&view=rev
Log:
If the second Date parameter for Timer.scheduleAtFixedRate() is earlier than current time,
the Timer will just run the task from current time. The right behavior should be that the
Timer run the delayed task together to catch up.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java?rev=834293&r1=834292&r2=834293&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Timer.java Tue Nov
10 01:38:00 2009
@@ -549,7 +549,7 @@
             throw new IllegalArgumentException();
         }
         long delay = when.getTime() - System.currentTimeMillis();
-        scheduleImpl(task, delay < 0 ? 0 : delay, period, true);
+        scheduleImpl(task, delay, period, true);
     }
 
     /*



Mime
View raw message