A thread that invokes wait()
expects to wake up and resume execution when its condition predicate becomes true. Waiting threads must test their condition predicates upon receiving notifications and resume waiting if the predicates are false, to be compliant with guideline rule THI03-J. Always invoke wait() and await() methods inside a loop.
...
Search for vulnerabilities resulting from the violation of this guideline rule on the CERT website.
Bibliography
...