Re: JavaMemoryModel: Finalizers

From: Joshua Bloch (
Date: Sun Apr 06 2003 - 14:25:08 EDT


   To echo Joe, I think the finalizer guardian idiom, whatever its
other deficiencies, does not have the problem you suggest: it does use
the implicit reference to its enclosing instance. Also I think you're
being a bit unfair when you say that you've "been trying for years to
get them to fix the classes that define equals(Object) but use the
default implementation of hashCode()." I have filed lots of bugs for
this, and seen many of them fixed. If you know of some that are still
broken, tell me. Ideally tell me the associated bug numbers.



JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:43 EDT