Text of codeql.github.com › codeql-query-help › java › java-wait-on-condition-interface as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Wait on condition — CodeQL query help documentation

CodeQL query help documentation » CodeQL query help for Java and Kotlin » Wait on condition ¶ ID: java/wait-on-condition-interface Kind: problem Security severity: Severity: error Precision: medium Tags: - quality - reliability - correctness - concurrency - external/cwe/cwe-662 Query suites: - java-security-and-quality.qls Click to see the query in the CodeQL repository Calling 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”. Recommendation ¶ Instead of Object.wait , use one of the Condition.await methods. References ¶ Java API Specification: java.util.concurrent.Condition . Common Weakness Enumeration: CWE-662 . © GitHub, Inc. Terms Privacy