[
https://issues.apache.org/jira/browse/GROOVY-7284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-7284.
-----------------------------
Resolution: Cannot Reproduce
Assignee: Paul King
There are quite possibly cases in the final variable analyser which we don't
fully cover yet but since for this issue we don't have a reproducible test
right now, I'll close it.
> 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: Paul King
> Priority: Major
>
> .../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
(v7.6.3#76005)