Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

VNA00-J

Medium

Probable

Medium

P8

L2

Automated Detection

Some static analysis tools are capable of detecting violations of this rule.

ToolVersionCheckerDescription
Eclipse4.2.0 Not Implemented
FindBugs2.0.1 Not Implemented
PMD5.0.0 Not Implemented
Fortify  Not Implemented
Coverity  v7.5SERVLET_ATOMICITYFully Implemented
ThreadSafe
Include Page
ThreadSafe_V
ThreadSafe_V

CCE_SL_INCONSISTENT

CCE_CC_CALLBACK_ACCESS

CCE_SL_MIXED

CCE_SL_INCONSISTENT_COL

CCE_SL_MIXED_COL

CCE_CC_UNSAFE_CONTENT

CCE_FF_VOLATILE

Implemented

...

[Bloch 2008]

Item 66. Synchronize access to shared mutable data

[Goetz 2006]

3.4.2, Example: Using Volatile to Publish Immutable Objects

[JLS 2005]

Chapter 17, Threads and Locks

 

§17.4.5, Happens-Before Order

 

§17.4.3, Programs and Program Order

 

§17.4.8, Executions and Causality Requirements

[JPL 2006]

14.10.3, The Happens-Before Relationship

 

...

07. Rule 08: Visibility and Atomicity (VNA)      07. Rule 08: Visibility and Atomicity (VNA)