[ https://issues.apache.org/jira/browse/GROOVY-7688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032223#comment-15032223 ]
ASF GitHub Bot commented on GROOVY-7688: ---------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/incubator-groovy/pull/199 > Using spread operator on function with compile static results in two calls to > function > -------------------------------------------------------------------------------------- > > Key: GROOVY-7688 > URL: https://issues.apache.org/jira/browse/GROOVY-7688 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.5 > Reporter: MichaĆ Lewandowski > Assignee: Shil Sinha > Priority: Minor > > Method *heavyOperation()* will be called twice. If we remove @CompileStatic, > problem is solved. > {noformat} > @CompileStatic > List<String> invokeCompileStatic(Service service){ > service.heavyOperation()*.toString() > } > {noformat} > A test which confirms it, can be found in [my > Gist|https://gist.github.com/mlevvy/948e13414be360a20212] -- This message was sent by Atlassian JIRA (v6.3.4#6332)