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

auto coerce List to Object[]

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-JSR-1
    • ast builder
    • None

    Description

      Object[] a = [1]

      this currently throws an exception at run time.

      It would be convenient if it caused toArray to be called on the List

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: