[ 
https://issues.apache.org/jira/browse/GROOVY-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15195211#comment-15195211
 ] 

Martin Andersson commented on GROOVY-2752:
------------------------------------------

..and the problem still exists in Groovy 2.4.6.

> final keyword does not work
> ---------------------------
>
>                 Key: GROOVY-2752
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2752
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>            Reporter: Daniel.Sun
>
> {code}
> final greeting = 'Hello'
> greeting = 'Welcome'
> println greeting
> {code}
> What I expect is that Groovy will complain greeting is final variable that 
> should not be able to be modified.
> Actually, the code executed very well, and its result is: Welcome



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

Reply via email to