On Wed, Oct 28, 2009 at 2:56 PM, Noel Grandin <[email protected]> wrote: > We had a discussion about this early on, but I think that was before we > moved to apache, so the archives are probably gone. > > The bottom line is that using weak references for listeners has nasty > corner cases. > > For example, if we do > > something.addListener(new Listener() { > }); > > and we use a weak reference, the anonymous inner class will get GC'ed at > some random point in time, even if the parent class is still alive.
My question is then; How do you expect to remove it?? Isn't the above a stark reminder of shitty programming, where the programmer doesn't care about proper lifecycle managment so prevalent in today's programming shops?? *sigh* I think I'll open a pub instead. *sigh* Cheers -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug
