groovy

Cannot use "final" modifier on iterator in for (...) loops

Details

  • Number of attachments :
    0

Description

Consider a piece of code like this :

for ( final Element e : someCollectionOfElement ) {
//do something with e
}

while this compiles with Java, Groovy gives me the following exception

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: