[ 
https://issues.apache.org/jira/browse/GROOVY-7688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shil Sinha resolved GROOVY-7688.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.6

> 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
>             Fix For: 2.4.6
>
>
> 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)

Reply via email to