Skip to content

Commit

Permalink
Ignore Object.getClass() in library
Browse files Browse the repository at this point in the history
  • Loading branch information
silverbullettt committed Sep 11, 2023
1 parent c45e1c4 commit d79f515
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public OthersModel(Solver solver, MetaObjHelper helper) {
// ---------- Model for java.lang.Object starts ----------
@InvokeHandler(signature = "<java.lang.Object: java.lang.Class getClass()>", argIndexes = {BASE})
public void getClass(CSVar csVar, PointsToSet pts, Invoke invoke) {
if (!invoke.getContainer().isApplication()) {
// ignore Object.getClass() in library code, until
// we have better treatment with relevant reflective calls
return;
}
Var result = invoke.getResult();
if (result != null) {
Context context = csVar.getContext();
Expand Down

0 comments on commit d79f515

Please sign in to comment.