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 MITREBack 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
Java