[
https://issues.apache.org/jira/browse/GROOVY-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles reassigned GROOVY-6954:
-----------------------------------
Assignee: Eric Milles
> 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
>
> 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)