• 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: Nilton Lessa <email@hidden>
  • Date: Thu, 21 Aug 2008 11:05:55 -0300

Mike, Simon, Alex and Kieran,

Thank you very much for the information.

I and Henrique had already searched in Wonder and could't find any possible problem related to this issue. But we were insecure about some possible problems of direct finalize() calls in EOF or some core classes.

Thank you again.

Bests regards,


****************************************************** Nilton Lessa Moleque de Idéias Educação e Tecnologia Ltda e-mail: email@hidden email@hidden

******************************************************



On 21/08/2008, at 10:15, Mike Schrag wrote:

- where are the finalize() methods?(EOF, Wonder, ?)
As several others have pointed out, finalize is called by the GC. Further, nothing in WO, EOF, or Wonder directly calls the finalize method. If they're tracing through calls, they're probably seeing the calls to super.finalize() and mistaking them for direct finalize calls.

- how this use could affect GC perfomance?
Well, obviously implementing a custom finalizer TECHNICALLY slows down the GC, because it becomes more expensive to collect those objects .... but .. i mean .. really? This is the POINT of a GC. These objects have to be cleaned up, so it would be more work for you to manually do it. Also, show me a J2EE stack that doesn't implement any custom finalize methods.

- is it a valid point "per se"?
No.  It's an asinine point per se.

I'll be the first one to point out WO's flaws, and it certainly has its share of flaws (like any framework), but they've gotta do a little better than this.

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
References: 
 >Use of finalize methods in WO (From: Nilton Lessa <email@hidden>)
 >Re: Use of finalize methods in WO (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Use of finalize methods in WO
  • Next by Date: Automatic data generation
  • Previous by thread: Re: Use of finalize methods in WO
  • Next by thread: Re: Use of finalize methods in WO
  • Index(es):
    • Date
    • Thread