Daniil Ovchinnikov created GROOVY-8252:
------------------------------------------
Summary: AIOOBE in combination of ncurry and rcurry
Key: GROOVY-8252
URL: https://issues.apache.org/jira/browse/GROOVY-8252
Project: Groovy
Issue Type: Bug
Affects Versions: 2.4.12
Reporter: Daniil Ovchinnikov
{code}
def c = { a, b, c, d -> println a + b + c + d }
c.ncurry(0, "a").rcurry("c", "d")() // note no args passed
{code}
Expected: MissingMethodException or {{null}} passed.
Actual:
{noformat}
java.lang.ArrayIndexOutOfBoundsException
at java_util_concurrent_Callable$call.call(Unknown Source)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)