-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
groovy-cps/master bd35d05
An empty "for" termination is always looped (treated as true).
for (;;) { // infinite loop }
CPS transformed version never loops. Test for CpsTransformerTest currently fails:
@Test public void emptyForCondition() throws Throwable { assertEvaluate(true, "boolean looped = false;\n"+ "for (;;) { looped = true; break; }\n"+ "looped"); }