...
Failing to ensure the visibility of a shared primitive variable may result in a thread observing a stale value of the variable.
Rule | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
VNA00-J | Medium | Probable | Yes | MediumNo | P8 | L2 |
Automated Detection
Some static analysis tools are capable of detecting violations of this rule.
| Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| CodeSonar |
| JAVA.CONCURRENCY.LOCK.ICS | Impossible Client Side Locking client side locking (Java) | ||||||
| Eclipse | 4.2.0 | Not Implemented | |||||||
| FindBugs | 2.0.1 | Not Implemented | |||||||
| Klocwork |
| SV.SHARED.VAR | |||||||
| Parasoft Jtest |
| CERT.VNA00.LORD CERT.VNA00.MRAV | Ensure that nested locks are ordered correctly Access related Atomic variables in a synchronized block | ||||||
| PMD | 5.0.0 | Not Implemented | |||||||
| Fortify | Not Implemented | ||||||||
| Coverity | 7.5 | SERVLET_ATOMICITY | Implemented | ||||||
| ThreadSafe |
| CCE_SL_INCONSISTENT | Implemented |
...