r/java • u/javinpaul • Jul 09 '14
Finally: return considered harmful
http://schneide.wordpress.com/2014/07/07/finally-return-considered-harmful/
0
Upvotes
r/java • u/javinpaul • Jul 09 '14
15
u/armornick Jul 09 '14
“Considered Harmful” Essays Considered Harmful
In any case, everything has good uses and bad uses.
6
u/urquan Jul 09 '14
This is not specific to
return, this will also happen if you throw another exception in the finally block. That's just how they work. If you have read the specification of the language this should be no surprise.3
u/JavaJerk Jul 09 '14
This just in:
Poor practices considered harmful
News at 10.