(original) (raw)
On Mon, Oct 12, 2009 at 12:52 PM, R�mi Forax <forax@univ-mlv.fr> wrote:
It's not a good idea to have a hashCode() that allocate objects,
at least until escape analysis is implemented in all VMs.
Agree with Joe--these methods don't carry their weight. If the allocation is too much to bear, it's easy enough to write the hash by hand. Plus, it won't have the overhead of a method invocation. ;-)�
That's not to say I don't think you should ever do this.
Bob