-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: workflow-cps-plugin
-
None
-
Environment: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");
}