[EMAIL PROTECTED] writes:
> Reddy Ramakrishna <[EMAIL PROTECTED]> writes:
> >
> > Can somebody explain me how japhar generates hashcode in java.lang.Object ?
> > I would like to know the algorithm and where in japhar code I can find
> > the implementation.
>
> java.lang.Object simply returns the address of the object, cast to a
> 32 bit int.
>
> this may involve truncating, but that isn't a problem, since it
> doesn't matter if two objects have the same hashcode -- just that one
> object always return the same hashcode.
sorry -- didn't tell you where it was.
lib/libnative/java.lang/object.c
xtoph