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

AIOOBE in combination of ncurry and rcurry

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.12
    • Fix Version/s: 2.4.13, 2.5.0-beta-3
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: