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

collectEntries misleading error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 2.3.6, 2.4.0-beta-2
    • None
    • None

    Description

      Executing the following

       [[1,'a'], [2,'b'], [3]].collectEntries()
      

      leads to:

      groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.getKey() is applicable for argument types: () values: []

      It should rather throw an IllegalArgumentException

      Attachments

        Activity

          People

            paulk Paul King
            dariusan dariusan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: