Skip to content

Commit fc415b3

Browse files
committed
Java: Bugfix in TypeFlow.
1 parent e89b42f commit fc415b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private predicate upcastCand(TypeFlowNode n, RefType t, RefType t1, RefType t2)
220220
ret.getResult() = n.asExpr() and t2 = ret.getEnclosingCallable().getReturnType().getErasure()
221221
)
222222
or
223-
exists(MethodAccess ma | viableImpl_v1(ma) = n.asMethod() and t2 = ma.getType())
223+
exists(MethodAccess ma | viableImpl_v1(ma) = n.asMethod() and t2 = ma.getType().getErasure())
224224
or
225225
exists(Parameter p | privateParamArg(p, n.asExpr()) and t2 = p.getType().getErasure())
226226
or

0 commit comments

Comments
 (0)