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

AIOOBE in combination of ncurry and rcurry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.12
    • 2.4.13, 2.5.0-beta-3
    • None
    • None

    Description

      def c = { a, b, c, d -> println a + b + c + d }
      c.ncurry(0, "a").rcurry("c", "d")() // note no args passed
      

      Expected: MissingMethodException or null passed.
      Actual:

      java.lang.ArrayIndexOutOfBoundsException
      at java_util_concurrent_Callable$call.call(Unknown Source)
      

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              daniilo Daniil Ovchinnikov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: