Skip to content

Commit

Permalink
supported final method case in virtual call
Browse files Browse the repository at this point in the history
- added case for approximated interfaces
  • Loading branch information
MchKosticyn committed Aug 13, 2024
1 parent c6bdfce commit 3b1f43e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,16 @@ class JcInterpreter(
return
}

if (method.isFinal) {
// Case for approximated interfaces
with (stmt) {

Check warning

Code scanning / detekt

Reports spaces around parentheses Warning

Unexpected spacing before "("
scope.doWithState {
newStmt(JcConcreteMethodCallInst(location, method, arguments, returnSite))
}
}
return
}

resolveVirtualInvoke(stmt, scope)
}

Expand Down

0 comments on commit 3b1f43e

Please sign in to comment.