Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      final greeting = 'Hello'
      
      greeting = 'Welcome'
      
      println greeting
      

      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

        Issue Links

          Activity

          Daniel.Sun created issue -
          Guillaume Delcroix made changes -
          Field Original Value New Value
          Fix Version/s 1.5.5 [ 14028 ]
          Fix Version/s 1.5.6 [ 14189 ]
          Fix Version/s 1.6-beta-1 [ 14008 ]
          Paul King made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Paul King made changes -
          Link This issue is duplicated by GROOVY-1475 [ GROOVY-1475 ]
          Paul King made changes -
          Link This issue is duplicated by GROOVY-1475 [ GROOVY-1475 ]
          Paul King made changes -
          Link This issue duplicates GROOVY-1628 [ GROOVY-1628 ]
          Paul King made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Jochen Theodorou made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Duplicate [ 3 ]
          Jochen Theodorou made changes -
          Resolution Duplicate [ 3 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Fix Version/s 1.5.6 [ 14189 ]
          Fix Version/s 1.6-beta-1 [ 14008 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Mark Thomas made changes -
          Workflow jira [ 12731776 ] Default workflow, editable Closed status [ 12743698 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12969820 ] Default workflow, editable Closed status [ 12977564 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Daniel.Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development