On 4 Jul 2000, Juergen Kreileder wrote:
> It's no bug, the behavior is absolutely legal.
...
> The implementation of Object.hashCode() was changed in 1.2 for
> security reasons.
...
> It's no bug.
>
> Mo> The final option would be to write my own UID() method that
> Mo> would try to do something to detect a duplicate id and
> Mo> generate a unique one.
>
> That's the better solution, System.identityHashCode() simply doesn't
> guarantee unique values.
>
>
> Juergen
Ok, so if System.identityHashCode() does not guarantee unique values
for different objects, then what is the point of having the
System.identityHashCode() API to begin with?
Mo DeJong
Red Hat Inc
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]