Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1-beta-2
-
None
Description
Java supports the use of iterators like so:
for (Iterator i = list.iterator();i.hasNext(){
The above in Groovy causes a compilation error:
unexpected token: )
= list.iterator();i.hasNext(){
but does support with an extra semicolon
for (Iterator i = list.iterator();i.hasNext();
Groovy should support the java syntax