groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (GROOVY-8716) Could not find matching constructor for java.util.List()
Date Fri, 27 Jul 2018 17:21:00 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560028#comment-16560028
] 

Paul King edited comment on GROOVY-8716 at 7/27/18 5:20 PM:
------------------------------------------------------------

I think it is the Spock issue I mentioned above since it works with {{1.2-groovy-2.5-SNAPSHOT}}
and {{1.2-groovy-2.5-SNAPSHOT}} when adding in the following snapshot repo:
{code:java}
repositories {
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
{code}

 


was (Author: paulk):
I think it is the issue I mentioned above since it works with {{1.2-groovy-2.5-SNAPSHOT}}
and {{1.2-groovy-2.5-SNAPSHOT}} when adding in the following snapshot repo:
{code:java}
repositories {
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
{code}

 

> Could not find matching constructor for java.util.List()
> --------------------------------------------------------
>
>                 Key: GROOVY-8716
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8716
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>            Reporter: paolo di tommaso
>            Priority: Major
>
> The following Spock test fail 
>  
> {code:java}
> class Foo extends Specification {
>   def 'should  create a list' () {
>     given:
>     def folder = null
>     when:
>     List results = []
>     then:
>     true
>     cleanup:
>     folder?.deleteDir()
>   }
> }{code}
>  
> The reported error is 
> {code:java}
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[]'
with class 'java.util.LinkedHashSet' to class 'java.util.List' due to: groovy.lang.GroovyRuntimeException:
Could not find matching constructor for: java.util.List()
> {code}



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

Mime
View raw message