groovy
  1. groovy
  2. GROOVY-4681

implement final for local variables

    Details

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

      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

        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 ]
        blackdrag blackdrag made changes -
        Fix Version/s 1.8.x [ 15750 ]
        blackdrag blackdrag made changes -
        Component/s Compiler [ 13529 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            blackdrag blackdrag
          • Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: