Clarify that TimerTasks are not reusable

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • b33
    • generic
    • generic

        To the javadoc of java.util.TimerTask please add something like:
        A TimerTask instance is not re-usable i.e.: never use it twice for Timer.schedule(...).

        Additionally you could extend the exception description of j.u.Timer.schedule(...):
        IllegalStateException - if task was already scheduled, canceled or already done, timer was canceled, or timer thread terminated.

              Assignee:
              Martin Buchholz
              Reporter:
              Ulf Zibis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: