Skip to content

Commit

Permalink
Merge pull request #6313 from aschackmull/java/fix-csv-dispatch
Browse files Browse the repository at this point in the history
Java: Fix a bug in call-context-sensitve dispatch to SummarizedCallable.
  • Loading branch information
aschackmull authored Jul 19, 2021
2 parents 0b89f96 + effca44 commit db76b12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private module DispatchImpl {
* restricted to those `ma`s for which a context might make a difference.
*/
Method viableImplInCallContext(MethodAccess ma, Call ctx) {
result = VirtualDispatch::viableImpl(ma) and
result = viableCallable(ma) and
exists(int i, Callable c, Method def, RefType t, boolean exact |
mayBenefitFromCallContext(ma, c, i) and
c = viableCallable(ctx) and
Expand All @@ -115,6 +115,8 @@ private module DispatchImpl {
result = VirtualDispatch::viableMethodImpl(def, t.getSourceDeclaration(), t2) and
not failsUnification(t, t2)
)
or
result = def and def instanceof SummarizedCallable
)
}

Expand Down

0 comments on commit db76b12

Please sign in to comment.