...
Exposing the lock object to untrusted code can result in DoS.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
LCK00-J | low | probable | medium | P4 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
The Checker Framework |
| Lock Checker | Concurrency and lock errors (see Chapter 6) | ||||||
Parasoft Jtest |
| TRS.SOPF |
Do not synchronize on "public" fields since doing so may cause deadlocks | ||||||||
SonarQube |
| S2445 |
Related Guidelines
Bibliography
Item 52. Document Thread Safety |
...