Checked Exceptions do not exist on the JVM.

Mark Mahieu markmahieu at googlemail.com
Wed May 20 14:52:29 PDT 2009


Tom,

Sorry, there wasn't really a point in that sense; I just found it  
mildly amusing in an 'all roads lead back to javac' kind of way.   
Probably just my sense of humour though.

Mark


On 20 May 2009, at 22:42, Tom Ball wrote:

> I don't understand your point -- this is a test that is supposed to  
> fail, and it does (now).  Here is its comment, which also runs the  
> jtreg test runner:
>
> /*
>  * @test
>
>
>  * @bug 4053998
>  * @summary Compiler used to not notice the uncaught checked  
> exception.
>  * @author turnidge
>  *
>  * @compile/fail UncaughtException.java
>
>
>  */
> Tom
>
> On Wed, May 20, 2009 at 2:33 PM, Mark Mahieu  
> <markmahieu at googlemail.com> wrote:
>
> On 20 May 2009, at 21:10, Mark Thornton wrote:
> > Or perhaps something aweful ought to happen to someone who uses or
> > subclasses Throwable directly! ;-)
> >
> > Mark
>
> I think Google Code Search must have a sense of humour - the first
> result returned when I search for "throw\ new\ Throwable" is
> currently this, from javac's test suite (test/tools/javac/
> DefiniteAssignment.java):
>
>     public void throwCheckedException () throws Throwable {
>         throw new Throwable();
>     }
>
>
> Mark
>
>




More information about the coin-dev mailing list