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

Closure#curry doesn't support multiple args (and ius supposed to)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-4
    • None
    • None

    Description

      Closure#curry is implemented as a Java method with an Object arg type, which it then tries to expand into the array of args per invokeMethod. This doesn't work as the method won't match except on a single argument.

      Attachments

        1. fix-type-one.patch
          3 kB
          Brian McCallister
        2. TestClosures.groovy
          0.2 kB
          Brian McCallister

        Activity

          People

            tug John Wilson
            brianm Brian McCallister
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: