Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5988

Map subscript operator not working with CompileStatic

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.0.7, 2.1.1
    • Component/s: Static compilation
    • Labels:
      None
    • Environment:
      Ubuntu x64, Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
       

      Description

      When trying to use subscript operator on map within class compiled static with Groovy 2.1.0 the value is not put in the map. I need to use the Map#put method directly.

      See the simple test script attached.

        Attachments

        1. g210MapBug.groovy
          0.4 kB
          Vladimír Oraný

          Activity

            People

            • Assignee:
              melix Cédric Champeau
              Reporter:
              musketyr Vladimír Oraný
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: