Re: Use of finalize methods in WO
Re: Use of finalize methods in WO
- Subject: Re: Use of finalize methods in WO
- From: Mike Schrag <email@hidden>
- Date: Thu, 21 Aug 2008 15:21:56 -0400
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