Harmony
  1. Harmony
  2. HARMONY-1679

Timer.schedule(TimerTask, delay, period) doesn't cause repetitive invocation of task

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      Windows XP ia32

      Description

      This bug was found during investigation of unit test tests.api.java.util.TimerTaskTest

      Build: svn = r452457, (Oct 3 2006), Windows/ia32/msvc 1310, debug build

      Code to reproduce:

      import java.util.Timer;
      import java.util.TimerTask;

      public class Test {
      public static void main(String args[])

      { new Timer().schedule(new TimerTestTask(), 50, 50); }

      }

      class TimerTestTask extends TimerTask {
      public void run()

      { System.err.println("running..."); }

      }

      Output in RI:
      running...
      running...
      running...
      running...
      ... (infinite)...

      Output in Harmony:
      running...
      (and no more output)

        Issue Links

          Activity

            People

            • Assignee:
              Alexey Petrenko
              Reporter:
              Anton Luht
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development