1290
While this example does not have any real serious implications, if the shared variable in question is
used for resource tracking, then resource consumption could occur. Other scenarios exist.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 852 The CERT Oracle Secure Coding Standard for Java
(2011) Chapter 9 - Visibility and Atomicity (VNA)
844 2366
MemberOf 884 CWE Cross-section 884 2567
MemberOf 986 SFP Secondary Cluster: Missing Lock 888 2411
MemberOf 1142 SEI CERT Oracle Secure Coding Standard for Java -
Guidelines 08. Visibility and Atomicity (VNA)
1133 2448
MemberOf 1401 Comprehensive Categorization: Concurrency 1400 2526
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
The CERT Oracle Secure
Coding Standard for Java
(2011)
VNA00-J Ensure visibility when accessing shared
primitive variables
The CERT Oracle Secure
Coding Standard for Java
(2011)
VNA02-J Ensure that compound operations on
shared variables are atomic
Software Fault Patterns SFP19 Missing Lock
Related Attack Patterns
CAPEC-ID Attack Pattern Name
25 Forced Deadlock
CWE-568: finalize() Method Without super.finalize()
Weakness ID : 568
Structure : Simple
Abstraction : Variant
Description
The product 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().
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 573 Improper Following of Specification by Caller 1298
ChildOf 459 Incomplete Cleanup 1099
CWE Version 4.14
CWE-568: finalize() Method Without super.finalize()
CWE-568: finalize() Method Without super.finalize()