You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I used Joern to detect a Java project that used MyBatis-Plus, I found that Joern gave the inconsistent results for arguments resolving of similar calls queryWrapper.apply and updateWrapper.set
It shows that joern can correctly resovle one argument as a Literal and the other as an Identifier of String, and the corresponding code is also correct.
But when I used cpg.call.methodFullName(".*QueryWrapper.apply.*").argument.l, I found joern returned the wrong typeFullName and code of the second argument of queryWrapper.apply("username={0}",name)
Why joern gave the inconsistent results for arguments resolving of similar calls? How can I get the right typeFullName and code of secong argument of queryWrapper.apply("username={0}",name)
Following is the information of method queryWrapper.apply and updateWrapper.set, I don't know if it helps.
Describe the bug
When I used Joern to detect a Java project that used MyBatis-Plus, I found that Joern gave the inconsistent results for arguments resolving of similar calls
queryWrapper.apply
andupdateWrapper.set
To Reproduce
The Java code like
First, I used
cpg.call.methodFullName(".*UpdateWrapper.set.*").argument.l
, and Joern returns ( ignore the argument 0 )It shows that joern can correctly resovle one argument as a Literal and the other as an Identifier of String, and the corresponding code is also correct.
But when I used
cpg.call.methodFullName(".*QueryWrapper.apply.*").argument.l
, I found joern returned the wrong typeFullName and code of the second argument ofqueryWrapper.apply("username={0}",name)
Why joern gave the inconsistent results for arguments resolving of similar calls? How can I get the right typeFullName and code of secong argument of
queryWrapper.apply("username={0}",name)
Following is the information of method
queryWrapper.apply
andupdateWrapper.set
, I don't know if it helps.cpg.method.fullName(".*UpdateWrapper.set.*").l
cpg.method.fullName(".*QueryWrapper.apply.*").l
Desktop
The text was updated successfully, but these errors were encountered: