Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
According to the general contract equal object must have equal hash codes. However the following code fails:
AdminPrincipal p1 = new AdminPrincipal("p1"); AdminPrincipal p2 = new AdminPrincipal("p2"); assertTrue(!p1.equals(p2) || p1.hashCode() == p2.hashCode());
Original report: http://markmail.org/message/5eorcvf75gywh66t