Checked Exceptions do not exist on the JVM.

Mark Thornton mthornton at optrak.co.uk
Wed May 20 13:10:18 PDT 2009


>> No, I mean Exception :-)  Any Java code throw Throwable or RuntimeException
>> of course since those are not tracked by a Java compiler, but the right
>> semantics for a Dynamic call site come about if the compiler treats them as
>> if the method included "throws Exception" in its declaration.
>>     
>
>
> I think you misread the JLS.  The exception hierarchy is rooted at
> Throwable.  Subtypes of RuntimeException and Error are unchecked.  There is
> nothing special about the class Exception with respect to exception
> checking.
>
>   
Or perhaps something aweful ought to happen to someone who uses or 
subclasses Throwable directly! ;-)

Mark





More information about the coin-dev mailing list