groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sarath Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8705) When add method of java.util.List is invoked with a list parameter with paranthesis removed , the method fails.
Date Thu, 19 Jul 2018 12:04:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sarath Kumar updated GROOVY-8705:
---------------------------------
    Description: 
Consider following Groovy snippet

def myList = [100, 200, 300]
myList.add [400]
println myList

> When add method of java.util.List is invoked with a list parameter with paranthesis removed
, the method fails.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-8705
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8705
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Sarath Kumar
>            Priority: Minor
>
> Consider following Groovy snippet
> def myList = [100, 200, 300]
> myList.add [400]
> println myList



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message