Link Details

Link 111296 thumbnail
User 199933 avatar

By g_korland
via jroller.com
Published: Sep 07 2008 / 12:23

java Generics was born in sin, but it also breaks java exception model.
  • 11
  • 11
  • 1977
  • 618

Comments

Add your comment
User 161039 avatar

mheath replied ago:

-1 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.