CWE-580: clone() Method Without super.clone()

VariantDraft

The product contains a clone() method that does not call super.clone() to obtain the new object.

View on MITRE
Back to CWE Lookup

Extended Description

All implementations of clone() should obtain the new object by calling super.clone(). If a class does not follow this convention, a subclass's clone() method will return an object of the wrong type.

Technical Details

Structure
Simple

Applicable To

Languages
Java
Platforms

Learn More

CWE-580: clone() Method Without super.clone() | CWE Lookup | Inventive HQ