By g_korland via jroller.com Published: Sep 07 2008 / 12:23
You want to throw an undeclared checked exception? We've been able to do this for years without generics. Just do: Thread.currentThread().stop(new IOException("Have a nice day!")); Really, just because you can do something esoteric doesn't mean that you should expect stupid people to do so.
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Comments
mheath replied ago:
You want to throw an undeclared checked exception? We've been able to do this for years without generics. Just do:
Thread.currentThread().stop(new IOException("Have a nice day!"));
Really, just because you can do something esoteric doesn't mean that you should expect stupid people to do so.
Voters For This Link (11)
Voters Against This Link (11)