• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Use of finalize methods in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Use of finalize methods in WO
      • From: Nilton Lessa <email@hidden>
References: 
 >Use of finalize methods in WO (From: Nilton Lessa <email@hidden>)
 >Re: Use of finalize methods in WO (From: John Baldwin <email@hidden>)

  • Prev by Date: Re: Use of finalize methods in WO
  • Next by Date: Re: Regarding the WO 5.4
  • Previous by thread: Re: Use of finalize methods in WO
  • Next by thread: Re: Use of finalize methods in WO
  • Index(es):
    • Date
    • Thread