Comment by [email protected]: @bob.whiton: I'm assuming you mean something like this: B.addFooHandler(A); // drop reference to A
This is just normal Java memory management -- nothing magic. So if B is still around (because it is, e.g., a widget still attached to the document), then A will still hang around until it's either removed from B's handler manager or B itself is removed and thus collected.
For more information: http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
