> I'm using 1.2.
> If i use addElementToRegistry(String x) it doesn't work, but if I use
> addElementToRegistry(String hashcode, String x) with different hashcodes
it
> works fine!
Is it possible for different Java compilers or JVMs to behave
different? ie. Produce different hashcode on one platform and
produce same hashcode on another?
Also, an excerpt from the JDK 1.3 API docs:
It is not required that if two objects are unequal according to
the equals(java.lang.Object) method, then calling the
hashCode method on each of the two objects must produce
distinct integer results.
So, technically, it is possible for two hashcodes generated by
the Object class to collide.
Maybe some implementations generate poor hashcodes?
_____________________________________
John
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]