[concurrency-interest] Why does new ScheduledThreadPoolExecutor(0) not throw an exception?
pugh at cs.umd.edu
Fri Dec 5 21:02:28 EST 2008
The JavaDoc for Java 1.5 says that new ScheduledThreadPoolExecutor(0)
throws illegal argument exception.
It should, since such a created ScheduledThreadPoolExecutor is
useless. It will silently ignore all requests to execute anything.
But in Java 1.6, the spec was changed to say that it throws an
execution only if the argument is < 0.
More information about the Concurrency-interest