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 2c37422 commit 626d10f
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) {
scope.doWithState {
newStmt(JcConcreteMethodCallInst(location, method, arguments, returnSite))
}
}
return
}

resolveVirtualInvoke(stmt, scope)
}

Expand Down

0 comments on commit 626d10f

Please sign in to comment.