Join GitHub today
SEC-311: equals(Object object) in SecurityConfig does not obey symmetry requirement of the interface contract #574
The SecurityConfig.equals(Object object) method violates the symmetry requirement imposed by the Object.equals(Object object) contract. If the ‘other’ Object is a String, it compares that String to the attribute String stored in the SecurityConfig.
Consider the following situation:
While [code]myConfig.equals(myString)[/code] will return true, [code]myString.equals(myConfig)[/code] will return false, violating the equals symmetry.
I’ve checked the 1.1-SNAPSHOT (via http://www.acegisecurity.org/multiproject/acegi-security/clover/org/acegisecurity/SecurityConfig.html) and the equals method of SecurityConfig apparently has not changed.