Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084356 | emb-9 | Martin Buchholz | P4 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8084356 Clarify that TimerTasks are not reusable
-
- Resolved
-