Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Why finalize method not overriden for system resource classes?
Why finalize method not overriden for system resource classes? [message #546057] Sat, 10 July 2010 09:36 Go to next message
Vijay Raj
Messages: 603
Registered: July 2009
Senior Member
Why is the finalize method of system resource classes like font,color,image,pattern,cursor has not been overridden...

so that explicit dispose can be called there, instead of user ensuring that these have to be disposed.

Is there any specific reason???


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: Why finalize method not overriden for system resource classes? [message #546250 is a reply to message #546057] Mon, 12 July 2010 05:51 Go to previous messageGo to next message
Lakshmi Shanmugam
Messages: 271
Registered: July 2009
Location: India
Senior Member
Hi,

This article explains the reasons -
http://www.eclipse.org/articles/swt-design-2/swt-design-2.ht ml


Lakshmi P Shanmugam
Re: Why finalize method not overriden for system resource classes? [message #546311 is a reply to message #546250] Mon, 12 July 2010 08:55 Go to previous message
Vijay Raj
Messages: 603
Registered: July 2009
Senior Member
That was neat....
Thanks


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Separate table columns on Mac OS
Next Topic:Multiline text in table headers
Goto Forum:
  


Current Time: Wed May 22 19:32:45 EDT 2013

Powered by FUDForum. Page generated in 0.07506 seconds