groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-4681) implement final for local variables
Date Thu, 02 Jun 2016 00:15:59 GMT

     [ 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)

Mime
View raw message