Eric Milles created GROOVY-11843:
------------------------------------

             Summary: SC: map-style constructor call optimization
                 Key: GROOVY-11843
                 URL: https://issues.apache.org/jira/browse/GROOVY-11843
             Project: Groovy
          Issue Type: Bug
          Components: class generator, Static compilation
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
@CompileStatic test() {
  new Pogo(a:1, b:2, c:3)
}
{code}

When "a", "b" and "c" map to "setA(int)", "setB(int)" and "setC(int)" 
respectively there are spurious {{ACONST_NULL}} and {{POP}} instructions 
generated after each setter invocation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to