Skip to content

Commit

Permalink
clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Jan 28, 2024
1 parent 57f6df0 commit f55934c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ public void testZeroOneContainerStaticMethods()
"did not find call to valueOf");
}

/** Testing that there is no crash during iteration of points to sets */
@Test
public void testIteratingPointsToSetsForCreationSites()
throws CallGraphBuilderCancelException, IOException, ClassHierarchyException {
Expand All @@ -392,10 +393,9 @@ public void testIteratingPointsToSetsForCreationSites()
&& methodName.equals("foo")) {
if (lpk.isParameter()) {
for (InstanceKey ik : pointerAnalysis.getPointsToSet(lpk)) {
System.err.println(ik);
Iterator<Pair<CGNode, NewSiteReference>> iterator = ik.getCreationSites(cg);
while (iterator.hasNext()) {
iterator.next(); // crash here
iterator.next(); // making sure there is no crash here
}
}
}
Expand Down

0 comments on commit f55934c

Please sign in to comment.