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
fixed