[ https://issues.apache.org/jira/browse/GROOVY-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17432738#comment-17432738 ]
Eric Milles commented on GROOVY-6954: ------------------------------------- https://github.com/apache/groovy/pull/1646 > 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 > Time Spent: 10m > 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.3.4#803005)