Hashcodes are not guaranteed to be different. See Object#hashCode() javadocs.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Sariny [mailto:[email protected]] > Sent: Friday, December 10, 2010 3:34 PM > To: java-user > Subject: maybe I hit a bug of Term ? > > > Hi, two different Term get the same hashCode, lucene > version 3.0.2 > > System.out.println(new > Term("manu_id",NumericUtils.intToPrefixCoded(111)).hashCode()); > System.out.println(new > Term("manu_id",NumericUtils.intToPrefixCoded(402)).hashCode()); > > a bug? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
