Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.5.4
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: command line processing
-
Labels:None
-
Environment:win xp/jdk 6/comman line + eclipse/groovy 1.5.4
-
Number of attachments :
Description
Next does not compile:
for ( ; ite.hasNext() ; ) ... does not compile,
but for ( int i = 0; ite.hasNext() ; ) is compiling. All antoher code is the same.
Issue Links
- duplicates
-
GROOVY-2523
compiler complains for loop has empty body
-
Duplicate of
GROOVY-2523(though you need either a semi-colon, statement or braces after the for loop brackets).