Miles Sabin wrote:
>
> Apart from anything else, hashCodes are ints, so there are at
> most 2^32 distinct ones. A 64 bit implementation could support
> more that 2^32 objects, in which case there'd have to be some collisions.
This is not quite correct; only 21 bits are used for the HashCode. In
1.3 this is supposed to be changed to 23 or 27. The JVM desinges and the
library designers realize this is a problem, and even though the library
guys want more that that (bits), the JVM people have said it isn't likely to
happen until 1.4, which is when they may have a 64 bit JVM.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]