bug fix in identifying leaf tasks
authorjjenista <jjenista>
Mon, 25 Oct 2010 18:58:03 +0000 (18:58 +0000)
committerjjenista <jjenista>
Mon, 25 Oct 2010 18:58:03 +0000 (18:58 +0000)
Robust/src/Analysis/OoOJava/RBlockRelationAnalysis.java

index 416e1e9af6039d9712ddf0e3ce18d90d52820c60..834fcee55cc0e0ef585e0adacda970da1f001adc 100644 (file)
@@ -213,7 +213,7 @@ public class RBlockRelationAnalysis {
          itr.hasNext();
          ) {
       FlatSESEEnterNode fsen = itr.next();
-      
+
       boolean hasNoNestedChildren = fsen.getChildren().isEmpty();
       boolean hasNoChildrenByCall = !hasChildrenByCall( fsen );
 
@@ -244,7 +244,9 @@ public class RBlockRelationAnalysis {
         MethodDescriptor mdCallee  = fc.getMethod();
         Set              reachable = new HashSet();
 
+        reachable.add( mdCallee );
         reachable.addAll( callGraph.getAllMethods( mdCallee ) );
+
         reachable.retainAll( methodsContainingSESEs );
         
         if( !reachable.isEmpty() ) {