[SNMP4J] HashCode not unique?

Rory Marquis roridge at hotmail.com
Fri Oct 13 11:00:17 CEST 2006


The hash code doesn't have to be unique, two Objects can have the same 
HashCode but can still not be "equal()".

If it is the same HashCode for ALL OIDs then that would cause a problem. 
Having looked at Franks source code for the OID object this cannot be 
possible.

It appears that you have simply found two OIDs that are caluclated with the 
same HashCode, which more than acceptable and just as Gosling intended.

HTH

Rory





More information about the SNMP4J mailing list