Serialization patch and question

Jose Orlando Pereira jop at di.uminho.pt
Wed Feb 3 11:06:09 PST 1999


Godmar Back wrote:
> 
> >
> > Before I start working on this, is there any chance of using default
> > Object.equals() and Object.hashCode() methods on an object of a derived
> > class, which redefines them as something else, besides "going native"?
> >
> 
> I am not sure I understand everything you say, but there is
> System.identityHashCode(Object o), which return the hashcode that would
> be returned if Object.hashCode() is not overridden.

Yes, that's it. Thank you. I knew I had seen it before.
 
> In Kaffe, it returns the address of the object --- which opens a whole
> new can of worms once we'll use moving collectors.

No easy solution for that... You'll probably have to store something within
the object.

-- 
Jose Orlando Pereira
* mailto:jop at di.uminho.pt * http://gsd.di.uminho.pt/~jop *


More information about the kaffe mailing list