...
Failure to encase the wait() or await() methods inside a while loop can lead to indefinite blocking and denial of service (DoS).
Remediation CostDetectable | Repairable | Priority | Level |
|---|
THI03-J | Low | Unlikely | Yes |
Medium Automated Detection
| Tool | Version | Checker | Description |
|---|
CodeSonarCodeSonarCodeSonarFBCondition.await() not in loop Wait not in loop | MT_CORRECTNESS.WA_AWAIT_NOT_IN_LOOPFB.MT_CORRECTNESS.WA_NOT_IN_LOOPjava:java:TRSImplemented| Call 'wait()' and 'await()' only inside a loop that tests the liveness condition |
| SonarQube |
Java Plugin Java Plugin Java Plugin Bibliography
...
...
