On Monday 02 August 2004 20:05, Leo Simons wrote: > all value objects in framework should have equals() and hashCode(), some > have and should have toString(); and they should be serializable :-D
Ok, slowly digging through them all :o) ./api/src/java/org/apache/avalon/framework/Enum.java contains a final public int hashCode() and ./api/src/java/org/apache/avalon/framework/ValuedEnum.java extends Enum And then it is possible to have two Enums considered equal() from name alone. Both are abstract classes, so it is expected that something extends these, and inherit the same problem. CTR; I am removing the "final", and adding hashCode() and equals() to ValuedEnum. Cheers Niclas -- +------//-------------------+ / http://www.bali.ac / / http://niclas.hedhman.org / +------//-------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]