Skip to content

Commit a5a58f4

Browse files
authored
Merge pull request #9945 from aschackmull/java/wrappedinvocation-joinorder
Java: Improve join-order.
2 parents c2b9974 + cd356a5 commit a5a58f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/ql/lib/semmle/code/java/dispatch/WrappedInvocation.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ private predicate runner(Method m, int n, Method runmethod) {
1919
exists(Parameter p, MethodAccess ma, int j |
2020
p = m.getParameter(n) and
2121
ma.getEnclosingCallable() = m and
22-
runner(ma.getMethod().getSourceDeclaration(), j, _) and
23-
ma.getArgument(j) = p.getAnAccess()
22+
runner(pragma[only_bind_into](ma.getMethod().getSourceDeclaration()),
23+
pragma[only_bind_into](j), _) and
24+
ma.getArgument(pragma[only_bind_into](j)) = p.getAnAccess()
2425
)
2526
)
2627
}

0 commit comments

Comments
 (0)