"richard.opalka(a)jboss.com" wrote :
| Always call super.cleanup() style methods finally!
|
You mean the order or try/finally block?
If the 2nd, it's not always true. ;-)
Imagine having a lot of things to call at cleanup,
you might end up with loads of try/finally's.
It's then better to 'enforce' a strict contract of suppressing exceptions
in the actual sub-cleanup methods.
And that's exactly what we do here.
But, since it's only a single sub-cleanup call,
I'll put it in try/finally (I actually already did this :-).
The order doesn't matter.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202063#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...