Re: Use of finalize methods in WO
Re: Use of finalize methods in WO
- Subject: Re: Use of finalize methods in WO
- From: Nilton Lessa <email@hidden>
- Date: Thu, 21 Aug 2008 20:42:03 -0300
Thank you everybody for all the information and references.
At least, we will try to have some fun answering this report.
Bests regards, thanks again.
\o/ Nilton Lessa, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: email@hidden
/ \ http://www.moleque.com.br
On 21/08/2008, at 16:21, Mike Schrag wrote:
FWIW, Joshua Bloch argues against finalize in Item 7 of his
"Effective Java" book. It might be worth reading to know what the
arguments are, even if the consultants are making a bogus argument
in this case.
Sure, but in the case of WO, all the finalizers are perfectly
legit. Of the three instances in WO proper where finalizers are
even defined, the only one that actually matters at all is EC's, and
if you're totally against finalizers running to clean things up,
simply .dispose() your EC's manually, which is essentially all its
finalizer does anyway (which also corresponds to Bloch's advice as
well).
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden