When implementing the .equals method, the parameter should be defined as Object
otherwise calls like this


XInt i = new XInt( 1 );

if (i.equals( myMap.get("foo")))

may call the wrong method (the one in Object), and cause havoc


This patch fixes the problems.



Attachment: nocovariantequals.patch
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to