[ 
https://issues.apache.org/jira/browse/GROOVY-7284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pascal Schumacher updated GROOVY-7284:
--------------------------------------
    Fix Version/s:     (was: 2.5.0-beta-1)

> final variable declaration is broken 
> -------------------------------------
>
>                 Key: GROOVY-7284
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7284
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.5.0-beta-1
>         Environment: Debian Sid, Groovy master head
>            Reporter: Russel Winder
>            Assignee: Cédric Champeau
>
> .../Gant/src/main/groovy/gant/Gant.groovy: 128: The variable [fileText] is 
> declared final but is reassigned
> . At [128:7]  @ line 128, column 7.
>          final fileText = url.text
>          ^
> 1 error
> This is a brand new error the code used to compile just fine. For the 
> avoidance of doubt:
> $ grep fileText `find src -name "*.groovy"` 
> src/main/groovy/gant/Gant.groovy:      final fileText = url.text
> src/main/groovy/gant/Gant.groovy:      compileScript(cacheDirectory, 
> fileText, className)
> src/main/groovy/gant/Gant.groovy:      return 
> binding.groovyShell.parse(fileText, buildClassName)
> the variable is not in fact reassigned.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to