Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: 1.1-rc-1
-
Component/s: command line processing
-
Labels:None
-
Number of attachments :
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
fixed