CWE-568
finalize() Method Without super.finalize()
AI Translation Available
The product contains a finalize() method that does not call super.finalize().
Status
draft
Abstraction
variant
Affected Platforms
Java
Extended Description
AI Translation
The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize().
Technical Details
AI Translation
Common Consequences
other
Impacts
quality degradation
Detection Methods
automated static analysis
Potential Mitigations
Phases:
implementation
testing
Descriptions:
•
Call the super.finalize() method.
•
Use static analysis tools to spot such issues in your code.