VariantDraft

CWE-568finalize() Method Without super.finalize()

Category: other

Description

The product contains a finalize() method that does not call super.finalize(). The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize().

Common consequences· 1

  • Other — Quality Degradation

Potential mitigations· 1

  • [Implementation]Call the super.finalize() method.

References

  1. https://cwe.mitre.org/data/definitions/568.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Explicit Call to Finalize()
CWE
finalize() Method Declared Public
CWE
Use of Object without Invoking Destructor Method
CWE
clone() Method Without super.clone()
CWE
Critical Public Variable Without Final Modifier
CWE
Public Static Field Not Marked Final
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.