Groovy
  1. Groovy
  2. GROOVY-4681

implement final for local variables

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.x
    • Component/s: Compiler
    • Labels:
      None

      Description

      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

        Activity

        Jochen Theodorou created issue -
        Paul King made changes -
        Field Original Value New Value
        Attachment finalForLocalVarsTooStrict.patch [ 55966 ]
        Paul King made changes -
        Attachment finalForParamsAndLocalVarsPartial.patch [ 55996 ]
        Attachment astNodeChangesWithFinal.patch [ 55997 ]
        Paul King made changes -
        Attachment finalForLocalVariables.patch [ 56012 ]
        Paul King made changes -
        Attachment astNodeChangesWithFinal.patch [ 55997 ]
        Paul King made changes -
        Attachment finalForLocalVarsTooStrict.patch [ 55966 ]
        Paul King made changes -
        Attachment finalForParamsAndLocalVarsPartial.patch [ 55996 ]
        Jochen Theodorou made changes -
        Fix Version/s 1.8.x [ 15750 ]
        Jochen Theodorou made changes -
        Component/s Compiler [ 13529 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733612 ] Default workflow, editable Closed status [ 12745329 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971073 ] Default workflow, editable Closed status [ 12978806 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jochen Theodorou
          • Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:

              Development