Skip to content

Commit 0029d3b

Browse files
committed
Java CSV flow summaries: allow specifying an unqualified typename to imply either the type itself or any generic specialisation.
It is still possible to specify a precise generic signature if need be.
1 parent 224e537 commit 0029d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private predicate elementSpec(
287287
bindingset[namespace, type, subtypes]
288288
private RefType interpretType(string namespace, string type, boolean subtypes) {
289289
exists(RefType t |
290-
t.hasQualifiedName(namespace, type) and
290+
[t, t.getSourceDeclaration()].hasQualifiedName(namespace, type) and
291291
if subtypes = true then result.getASourceSupertype*() = t else result = t
292292
)
293293
}

0 commit comments

Comments
 (0)