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

Péter Kovács peter.kovacs.1.0rc at gmail.com
Wed May 20 09:18:00 EDT 2009


Hi,

Is it possible to get java.lang.InterruptedException, even if none of
the method along the call stack declares this exception?

We are experiencing such a case. Class.forName(String) appears to
throw the exception.

Is it not a breach of one of the fundamental contracts of the Java
language: "checked" exception are not allowed to be thrown in a method
without this method being declared to (potentially) throw it? (We
catch this exception as a Throwable in a catch(Throwable) clause.)

Thanks
Peter


More information about the Concurrency-interest mailing list