[Soot-list] callgraph

Chris Pickett chris.pickett at mail.mcgill.ca
Wed Feb 14 08:49:56 EST 2007


Toth.Gabriella.2 at stud.u-szeged.hu wrote:
> public static void main(String[] args) {
>     A a=new B();
>     System.out.println(a);
> }
> 
> I created a callgraph:
> and there isn't any edge between C.main and B.toString.

This isn't surprising: C.main() does not call B.toString().  It calls 
B.<init> and System.out.println(Object).

> How can I retrieve this edge?

As an alternative, you can try to find where a.toString() is invoked 
inside System.out.println(Object).

Cheers,
Chris


More information about the Soot-list mailing list