You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/06/02 00:15:59 UTC

[jira] [Closed] (GROOVY-4681) implement final for local variables

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

Paul King closed GROOVY-4681.
-----------------------------
       Resolution: Duplicate
         Assignee: Paul King
    Fix Version/s:     (was: 2.x)

I am going to close this as a duplicate since we now have a {{FinalVariableAnalyzer}}. I don't believe all cases are covered yet but we should raise specific issues for any gaps found in the current implementation instead of this general issue.

> implement final for local variables
> -----------------------------------
>
>                 Key: GROOVY-4681
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4681
>             Project: Groovy
>          Issue Type: Task
>          Components: Compiler
>            Reporter: Jochen Theodorou
>            Assignee: Paul King
>         Attachments: finalForLocalVariables.patch
>
>
> a final modifier on a local variable of some kind is currently ignored by groovy. Instead groovy should give a compile time error if final is used but the variable gets still a value



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