Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.0-JSR-6
-
None
-
None
-
None
-
JSR-6, JDK1.5, Windows XP
Description
The simple script:
println "Hello World"
final foo = "Foo is final"
println foo
foo = "Yet foo has changed"
println foo
outputs:
Hello World
Foo is final
Yet foo has changed
groovy should error when the final variable foo is re-assigned
Attachments
Issue Links
- duplicates
-
GROOVY-1628 Inconsistent checking of final
-
- Closed
-