[
https://issues.apache.org/jira/browse/GROOVY-8252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187616#comment-16187616
]
ASF GitHub Bot commented on GROOVY-8252:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/612
GROOVY-8252: AIOOBE in combination of ncurry and rcurry
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy8252
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/612.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #612
----
commit 1fc4449df4a9359275131a341b9a4e9390705cdd
Author: paulk <[email protected]>
Date: 2017-10-02T01:29:43Z
GROOVY-8252: AIOOBE in combination of ncurry and rcurry
----
> 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)