You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/10/21 20:25:00 UTC
[jira] [Assigned] (GROOVY-6954) map.foo = "bar" not optimized by
the static compiler
[ 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)