Eric Milles created GROOVY-10617:
------------------------------------

             Summary: Return statement insertion generates unnecessary dynamic 
cast
                 Key: GROOVY-10617
                 URL: https://issues.apache.org/jira/browse/GROOVY-10617
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
String m() {
  // return null
}
{code}

The null return is implicit (inserted by {{ReturnAdder}}) but also generates an 
invokedynamic cast instruction when the return type is anything besides Object.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to