Wait on condition¶
ID: java/wait-on-condition-interface Kind: problem Severity: error Precision: medium Tags: - reliability - correctness - concurrency - external/cwe/cwe-662 Query suites: - java-security-and-quality.qls
wait on an object of type
java.util.concurrent.locks.Condition may result in unexpected behavior because
wait is a method of the
Object class, not the
Condition interface itself. Such a call is probably a typographical error: typing “wait” instead of “await”.
Object.wait, use one of the