Checked Exceptions do not exist on the JVM.
Tom Ball
tball at google.com
Wed May 20 14:42:19 PDT 2009
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