...
A program may leak resources when it relies on finalize()
to release system resources or when there is confusion over which part of the program is responsible for releasing system resources. In a busy system, the delay before the finalize()
method is called for an object provides a window of vulnerability during which an attacker could induce a denial-of-service attack. Consequently, resources other than raw memory must be explicitly freed in non-finalizer methods, because of the unsuitability of using finalizers. See the rule MET18 MET12-J. Do not use finalizers for additional reasons to avoid the use of finalizers.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="04b7791b3a107cf5-1b8a82f4-496f4a33-991c8f02-f161832d5132cdf8b6dafe4c"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | [Class Object | http://java.sun.com/javase/6/docs/api/java/lang/Object.html] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c7368226c3ffffc8-613d2da7-4d9e4bec-a3398b0d-d77997323667db22d888e479"><ac:plain-text-body><![CDATA[ | [[Goetz 2006b | AA. Bibliography#Goetz 06b]] |
| ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="eb65cf3697db1968-2ef90b95-4f994f1a-82178869-2c8ebbfe1e6e08c06107681e"><ac:plain-text-body><![CDATA[ | [[J2SE 2011 | AA. Bibliography#J2SE 11]] | The try-with-resources Statement | ]]></ac:plain-text-body></ac:structured-macro> |
...