[concurrency-interest] ScheduledThreadPoolExecutor lost exception?

Doug Lea dl at cs.oswego.edu
Tue May 24 16:43:44 EDT 2005


I mis-wrote...

> TAlison at ameritrade.com wrote:

> A periodic task is not considered to have completed until
> it is cancelled -- its run() method is repeatedly called until then.
> So, afterExecute is only called after the final re-running.

Sorry, afterExecute is called, but the return value and exception
are suppressed/ignored until completion. Which the spec doesn't say will
happen , so is very arguably a bug, that should be fixed.

-Doug


More information about the Concurrency-interest mailing list