The hashCode() method is based on an item in Effective Java (Bloch). The bug is because XDoclet atm doesn't recognise the difference between byte[] and byte.... I will try to fix this.
I didn't implement the equals method so cant speak for that. cheers dim ----- Original Message ----- From: "Hani Suleiman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2002 11:36 PM Subject: [Xdoclet-user] DO error > I'm getting an error compiling my data object from xdoclet cvs latest, in > this line: > result = 37*result + (int) content; > > > Where content is a byte[] field, which xdoclet somehow tries to cast as an > int. > However, I'm baffled by the way that equals and hashCode are defined...why > so convoluted? Also, why does the equals method not short-circuit as soon > as any unequality is detected? Seems somewhat wasteful to go through and > check all the other fields once one has failed. > > > > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
