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

map.foo = "bar" not optimized by the static compiler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.4
    • 4.0.0-beta-2
    • Static compilation
    • None

    Description

      The following code, if statically compiled:

      map.foo = 'bar'
      

      produces a call to setProperty instead of going directly through map.put. It's worth noting that if not on LHS of an assignment, the operation is optimized to use get.

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              melix Cédric Champeau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h