CWE-568 — finalize() Method Without super.finalize()
CWE-568: finalize() Method Without super.finalize()
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Draft |
| Likelihood of exploit | — |
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
- Other: Quality Degradation
Mitigations
Implementation — Call the super.finalize() method.
References
- CWE page: https://cwe.mitre.org/data/definitions/568.html
- CWE list: https://cwe.mitre.org/data/index.html