CodeQL library for Java/Kotlin
codeql/java-all 0.9.2-dev (changelog, source)
Search

Predicate Dispatch::lowConfidenceDispatchTarget

Holds if m is a viable implementation of the method called in ma for which we only have imprecise open-world type-based dispatch resolution, and the dispatch type is likely to yield implausible dispatch targets.

Import path

import semmle.code.java.dispatch.VirtualDispatch
predicate lowConfidenceDispatchTarget(MethodCall ma, Method m)