CWE-568: finalize() Method Without super.finalize()

Description

The product contains a finalize() method that does not call super.finalize().

Submission Date :

Dec. 15, 2006, midnight

Modification Date :

2023-06-29 00:00:00+00:00

Organization :

MITRE
Extended Description

The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize().

Example Vulnerable Codes

Example - 1

The following method omits the call to super.finalize().

discardNative();protected void finalize() {}

Related Weaknesses

This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined to give an overview of the different insight to similar items that may exist at higher and lower levels of abstraction.

Visit http://cwe.mitre.org/ for more details.

© cvefeed.io
Latest DB Update: Nov. 21, 2024 20:46