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

Map subscript operator not working with CompileStatic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1.0
    • 2.0.7, 2.1.1
    • Static compilation
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: