finalize()

2012-08-24 Thread Harold Comere
Hi all, I can not find the info on the web but : Does finalize() method works properly after gwt compilation ? Regards, Haroldli -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit

Re: finalize()

2012-08-24 Thread Thomas Broyer
On Friday, August 24, 2012 12:28:27 PM UTC+2, Harold wrote: Hi all, I can not find the info on the web but : Does finalize() method works properly after gwt compilation ? No. There's no such thing in JavaScript so it cannot be emulated. -- You received this message because you

Re: finalize()

2012-08-24 Thread Joseph Lust
Generally speaking, there is no reason you should need finalize either as it is a anti-pattern in all but a very few cases. However, for items like widgets, you can do cleanup in the OnDetach and OnUnload methods. Sincerely, Joseph -- You received this message because you are subscribed

Re: finalize()

2012-08-24 Thread Harold Comere
they are not used by any other object. In JAVA, the finalize() method done the trick as the garbage collector checks references to destroy unused objects. If JavaScript do not do that, i think i have to do a kind of smart pointer by myself. Regards, Harold 2012/8/24 Joseph Lust lifeofl...@gmail.com Generally

Re: finalize()

2012-08-24 Thread Alain Ekambi
I think even in Java there are few cases where you should rely on finalize. Actualy you should not rely on it at all 2012/8/24 Harold Comere harold.com...@gmail.com Hi, Thank you for answers ! I am using GWT for 3D purpose with WebGL. When i am destroying an object from the 3D scene

Re: finalize()

2012-08-24 Thread Joseph Lust
The commonly accepted two use cases are (1) for safety-net finalizers in older code (ensure resource is closed, but not preferred means), and (2) for native peers for finalizer chaining into native JNI calls that must have their finalizers called. Sincerely, Joseph -- You received this

[gwt-contrib] [google-web-toolkit] r7207 committed - Turn down spammy JavaObject finalize messages to spam....

2009-11-30 Thread codesite-noreply
Revision: 7207 Author: sco...@google.com Date: Mon Nov 30 16:12:57 2009 Log: Turn down spammy JavaObject finalize messages to spam. Patch by: jat Review by: me http://code.google.com/p/google-web-toolkit/source/detail?r=7207 Modified: /trunk/plugins/xpcom/JavaObject.cpp