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 ]
          Hide
          Paul King added a comment - - edited

          Duplicate of GROOVY-1628

          Show
          Paul King added a comment - - edited Duplicate of GROOVY-1628
          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 ]
          Hide
          Glyn Normington added a comment -

          I think the fix version is incorrect as this problem still exhibits in Groovy 1.8.4.

          GROOVY-1628 is unresolved, so I don't think this duplicate should have any fix version.

          Show
          Glyn Normington added a comment - I think the fix version is incorrect as this problem still exhibits in Groovy 1.8.4. GROOVY-1628 is unresolved, so I don't think this duplicate should have any fix version.
          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 ]
          Hide
          Cazacu Mihai added a comment -

          The problem still exists in groovy 2.1.2

          Show
          Cazacu Mihai added a comment - The problem still exists in groovy 2.1.2
          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 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          10h 24m 1 Paul King 14/Apr/08 20:46
          Resolved Resolved Closed Closed
          2d 11h 41m 1 Paul King 17/Apr/08 08:27
          Closed Closed Reopened Reopened
          1330d 1h 15m 1 Jochen Theodorou 08/Dec/11 08:43
          Reopened Reopened Closed Closed
          15s 1 Jochen Theodorou 08/Dec/11 08:44

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development