You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/08/27 00:17:00 UTC

[jira] [Created] (GROOVY-9703) DefaultGroovyMethods.reverse(T[], true) performs extra copy

Eric Milles created GROOVY-9703:
-----------------------------------

             Summary: DefaultGroovyMethods.reverse(T[], true) performs extra copy
                 Key: GROOVY-9703
                 URL: https://issues.apache.org/jira/browse/GROOVY-9703
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles
            Assignee: Eric Milles


{code:groovy}
def array = new Object[] {1,2,3}
array.reverse(true)
{code}

In-place reverse performs an extra (unnecessary) {{System.arraycopy(...)}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)