|
|
|
|
CWE-568: finalize() Method Without super.finalize() | |
| | finalize() Method Without super.finalize() |
|
| Weakness ID: 568 (Weakness Variant) | | Status: Draft |
Description
Description Summary The software contains a finalize() method that does not call
super.finalize().
Extended Description
The Java Language Specification states that it is a good practice for a
finalize() method to call super.finalize()
Time of Introduction Demonstrative Examples Example 1 The following method omits the call to
super.finalize(). (Bad Code) Java protected void finalize() { } Potential Mitigations | Phase | Description |
| Call the super.finalize() method. |
| Use static analysis tools to spot such issues in your code. |
Relationships Content History | 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 |
|