Common Weakness Enumeration

CWE-581

Allowed

Object Model Violation: Just One of Equals and Hashcode Defined

Abstraction: Variant · Status: Draft

The product does not maintain equal hashcodes for equal objects.

0 vulnerabilities reference this CWE, most recent first.

No vulnerabilities reference this CWE.

Mitigation
Implementation

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

No CAPEC attack patterns related to this CWE.