[ 
https://issues.apache.org/jira/browse/GROOVY-7688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029060#comment-15029060
 ] 

John Wagenleitner edited comment on GROOVY-7688 at 11/26/15 4:26 PM:
---------------------------------------------------------------------

Looks similiar to issue GROOVY-7656.


was (Author: jwagenleitner):
Possibly same issue as GROOVY-7656.

> 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
>            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)

Reply via email to