finalize() Method Without super.finalize() |
Weakness ID: 568 (Weakness Variant) | Status: Draft |
Description Summary
Extended Description
The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize()
Example 1
The following method omits the call to super.finalize().
Call the super.finalize() method. |
Use static analysis tools to spot such issues in your code. |
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 399 | Resource Management Errors | Development Concepts (primary)699 |
ChildOf | ![]() | 404 | Improper Resource Shutdown or Release | Research Concepts (primary)1000 |
ChildOf | ![]() | 573 | Failure to Follow Specification | Research Concepts1000 |
Modifications | ||||
---|---|---|---|---|
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Potential Mitigations, Time of Introduction | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Relationships, Other Notes | ||||
2009-10-29 | CWE Content Team | MITRE | Internal | |
updated Description, Other Notes | ||||
Previous Entry Names | ||||
Change Date | Previous Entry Name | |||
2008-04-11 | Erroneous Finalize Method | |||
Security-Database help your corporation foresee and avoid any security risks that may impact your IT infrastructure and business applications.