Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

MITRE 2009CWE

CWE ID 581, "Object Model Violation: Just One of Equals and Hashcode Defined"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9483a78562305084-e558983b-408a40b1-8fac9b4c-4d7c86fac9089a0d69c955d7"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

[Class Object

http://java.sun.com/javase/6/docs/api/java/lang/Object.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="23983a2feb63ebf6-0af53a86-44f8441a-b79b99f0-f8e955f910715fa8fde22086"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Item 9: Always override hashCode when you override equals

]]></ac:plain-text-body></ac:structured-macro>

...