Skip to content

Commit 97694bc

Browse files
smowtonaschackmull
andauthored
Report error even if interpretElement resolves to a non-Callable Element
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent bb5fefa commit 97694bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/utils/GenerateFlowTestCase.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ query string getAParseFailure(string reason) {
4141
string namespace, string type, boolean subtypes, string name, string signature, string ext
4242
|
4343
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _, result) and
44-
not exists(interpretElement(namespace, type, subtypes, name, signature, ext)) and
44+
not interpretElement(namespace, type, subtypes, name, signature, ext) instanceof Callable and
4545
reason = "callable could not be resolved"
4646
)
4747
or

0 commit comments

Comments
 (0)