[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Plague of temp VFS files and OOM on redeploy
alesj
do-not-reply at jboss.com
Thu Jan 15 04:42:07 EST 2009
"richard.opalka at 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#4202063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202063
More information about the jboss-dev-forums
mailing list