Manik Surtani wrote:
On 13 Oct 2009, at 15:30, Jason T. Greene wrote:
> We've always had that requirement. Hes referring to classes which do
> not
> define a hashCode, and thus inherit Object.hashCode(), which
> produces a
> number based on the reference pointer which is different per-vm.
Sure, but for folks that don't expect to be able to retrieve a key
from anywhere, it should still work. But that is a weird use case
anyway, unless the cache is in local mode in which case DIST doesn't
apply.
Right, you can do it in local mode. His hashcode routine would of course
still work for that, that is if you wanted to have datacontainer alwyas
use it (probably a good idea).
--
Jason T. Greene
JBoss, a division of Red Hat