Duplicate hashcode for different Class objects
Unmesh joshi <[email protected]> Sat, 13 Dec 2008 10:11:13 +0000
| Newsgroups | gmane.comp.programming.garbage-collection.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, =20 We are facing a strange problem in our application. getClass().hashCode() i= s returning same hashcode for two different classes. My understanding is th= at default JDK implementation returns Object's memory address as hashCode. = Can this duplication happen because of any GC implementation chosen? (like = copying collection?). Is there any such bug already known? =20 This problem is intermitent on Mac OS X machines and also observed on a lin= ux box. =20 =20 Thanks, Unmesh _________________________________________________________________ Wish to Marry Now? Join MSN Matrimony FREE! http://in.msn.com/matrimony=