|Re: How to get call stack by analysing ast? [message #1065605 is a reply to message #1065487]
||Wed, 26 June 2013 16:03
| Ed Merks
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.13884 seconds