|
Re: How to get call stack by analysing ast? [message #1065605 is a reply to message #1065487] |
Wed, 26 June 2013 16:03 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Ed Merks![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=ed.merks%40gmail.com) Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
If I understand the question correctly, you can't statically know (in
general) which implementation class will be used at runtime by a call
through an interface.
On 26/06/2013 3:23 PM, 徐 兵 wrote:
> Hi all,I am a QA and encount a problem that i need to know what would
> be affected by the code changes dev made.
>
> There came an idea for me that i could analysis ast for each java file
> to get its calling relationship.
>
> When analysing ast, i choose MethodInvoke node so that i could get the
> caller and callee.Then i encount my problem that i found the callee i
> got is a interface for which i can find many implement,but i can't
> distinguish which one is the actually called one.
>
> Any ideas/comments/questions would be greatly appreciated.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds