CWE-581

Object Model Violation: Just One of Equals and Hashcode Defined

The product does not maintain equal hashcodes for equal objects.

Mitigation

Phase: Implementation

Description:

  • Both Equals() and Hashcode() should be defined.

No CAPEC attack patterns related to this CWE.

Back to CWE stats page