[concurrency-interest] Thread interruption protocol: InterruptedException is a "checked" exception, correct?

Paulo Levi i30817 at gmail.com
Wed May 20 11:32:09 EDT 2009


You're not reading the javadoc correctly:
*newInstance()*
"Note that this method propagates any exception thrown by the nullary
constructor, *including a checked exception*. Use of this method effectively
bypasses the compile-time exception checking that would otherwise be
performed by the compiler. The *Constructor.newInstance* method avoids this
problem by wrapping any exception thrown by the constructor in a (checked)
InvocationTargetException."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20090520/468ca8b2/attachment.html>


More information about the Concurrency-interest mailing list