Michał Lewandowski created GROOVY-7688:
------------------------------------------

             Summary: 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