groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniil Ovchinnikov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8252) AIOOBE in combination of ncurry and rcurry
Date Thu, 06 Jul 2017 19:26:00 GMT
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)

Mime
View raw message