[
https://issues.apache.org/jira/browse/GROOVY-7125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jochen Theodorou closed GROOVY-7125.
------------------------------------
Resolution: Won't Fix
absolete by the plus assign implementation
> avoid dynamic fallback for +=
> -----------------------------
>
> Key: GROOVY-7125
> URL: https://issues.apache.org/jira/browse/GROOVY-7125
> Project: Groovy
> Issue Type: Improvement
> Components: Static compilation
> Reporter: Jochen Theodorou
> Priority: Major
>
> {code:Java}
> @groovy.transform.CompileStatic
> void test() {
> List<Integer> counts = [0]
> counts[0] += 1
> }
> test()
> {code}
> The code will compile using dynamic fallback parts for the += operation since
> there is no += implementation besides that for primitives and arrays in the
> static compiler
--
This message was sent by Atlassian Jira
(v8.20.10#820010)