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 could not correctly resolve the full name of method selectById of UserMapper inherited from the parent class BaseMapper. I'm not sure if this is Joern's bug or I didn't use the correct method.
The method getUserById call the method selectById of UserMapper inherited from BaseMapper.
And I used
cpg.call.methodFullName(".*selectById.*").l
Expected behavior
Since the method selectById is inherited from BaseMapper, the methodFullName of call userMapper.selectById(userId) should be com.baomidou.mybatisplus.core.mapper.BaseMapper.selectById
Actual behavior
Joern gave the result that the methodFullName of call userMapper.selectById(userId) was org.wqy.mybatisplus.mapper.UserMapper.selectById
Describe the bug
When I used Joern to detect a Java project that used MyBatis-Plus, I found that Joern could not correctly resolve the full name of method
selectById
of UserMapper inherited from the parent class BaseMapper. I'm not sure if this is Joern's bug or I didn't use the correct method.To Reproduce
The detected Java code
The method
getUserById
call the methodselectById
of UserMapper inherited from BaseMapper.And I used
Expected behavior
Since the method
selectById
is inherited from BaseMapper, the methodFullName of calluserMapper.selectById(userId)
should becom.baomidou.mybatisplus.core.mapper.BaseMapper.selectById
Actual behavior
Joern gave the result that the methodFullName of call
userMapper.selectById(userId)
wasorg.wqy.mybatisplus.mapper.UserMapper.selectById
Desktop
The text was updated successfully, but these errors were encountered: