[ 
https://issues.apache.org/jira/browse/GROOVY-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-6954.
-----------------------------

> map.foo = "bar" not optimized by the static compiler
> ----------------------------------------------------
>
>                 Key: GROOVY-6954
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6954
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Static compilation
>    Affects Versions: 2.3.4
>            Reporter: Cédric Champeau
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 4.0.0-beta-2
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following code, if statically compiled:
> {code}
> map.foo = 'bar'
> {code}
> 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}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to