bug fix. analyzeMethod of buildgraph has wrong FlatMethod parameter.
authoryeom <yeom>
Sat, 10 Oct 2009 00:02:54 +0000 (00:02 +0000)
committeryeom <yeom>
Sat, 10 Oct 2009 00:02:54 +0000 (00:02 +0000)
Robust/src/Analysis/CallGraph/JavaCallGraph.java

index 133e210a0bf4568e9caf198c89091c6318aef4b1..3b6ba97cfdd8cd1910cc54e7b1e5789789afaf42 100644 (file)
@@ -35,7 +35,7 @@ public class JavaCallGraph extends CallGraph {
     while(!tovisit.isEmpty()) {
       MethodDescriptor md=(MethodDescriptor)tovisit.iterator().next();
       tovisit.remove(md);
-      FlatMethod fm=state.getMethodFlat(main);
+      FlatMethod fm=state.getMethodFlat(md);
       analyzeMethod(md, fm);
       for(Iterator<FlatNode> fnit=fm.getNodeSet().iterator();fnit.hasNext();) {
        FlatNode fn=fnit.next();