|
Status: Draft Weakness ID: 568 (Weakness Variant)Description Summary The software contains a finalize() method that does not call super.finalize(). Potential Mitigations Call the super.finalize() method. Use static analysis tools to spot such issues in your code. Demonstrative Examples The following method omits the call to super.finalize(). Java Example: protected void finalize() { discardNative(); }
Other Notes The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize() Relationships
Applicable Platforms Languages Java Time of Introduction ImplementationContent History Modifications Eric Dalci. Cigital. 2008-07-01. (External) updated Potential_Mitigations, Time_of_Introduction CWE Content Team. MITRE. 2008-09-08. (Internal) updated Relationships, Other_Notes Previous Entry Names Erroneous Finalize Method (changed 2008-04-11) |
|
|
|||