Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-722

don't use boxing for arrays created when calling methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-beta-10
    • ast builder
    • None

    Description

      class ArrayAutoboxingTest extends GroovyTestCase {

      void testUnwantedAutoboxingWhenInvokingMethods()

      { assert blah2(new int[2*2]) == "[I" }

      blah2(Object o)

      { return o.class.name }

      }

      the array is of type Integer[] but should be a int[]

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: