a bug fix.
authoryeom <yeom>
Sat, 8 Dec 2012 01:29:21 +0000 (01:29 +0000)
committeryeom <yeom>
Sat, 8 Dec 2012 01:29:21 +0000 (01:29 +0000)
Robust/src/Analysis/SSJava/LocationInference.java

index e5487a1..8944762 100644 (file)
@@ -2728,7 +2728,13 @@ public class LocationInference {
         MethodDescriptor parentMethodDesc = getParentMethodDesc(md.getClassDesc(), md);
         if (parentMethodDesc != null) {
           Map<TripleItem, String> parentMap = buildLattice.getIntermediateLocMap(parentMethodDesc);
-          buildLattice.setIntermediateLocMap(md, parentMap);
+          Map<TripleItem, String> childMap = new HashMap<TripleItem, String>();
+          Set<TripleItem> keySet = parentMap.keySet();
+          for (Iterator iterator2 = keySet.iterator(); iterator2.hasNext();) {
+            TripleItem key = (TripleItem) iterator2.next();
+            childMap.put(key, parentMap.get(key));
+          }
+          buildLattice.setIntermediateLocMap(md, childMap);
         }
         buildLattice(md);
       }