You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/04 09:04:06 UTC
[jira] [Closed] (GROOVY-7388) DefaultGroovyMethods class's plus(T[]
left, xxxx right) have ambiguous errors
[ https://issues.apache.org/jira/browse/GROOVY-7388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-7388.
-----------------------------
Resolution: Cannot Reproduce
Unsure what problem the user is having and no response from requests for information. Please reopen with more information if this is still a problem.
> DefaultGroovyMethods class's plus(T[] left, xxxx<T> right) have ambiguous errors
> --------------------------------------------------------------------------------
>
> Key: GROOVY-7388
> URL: https://issues.apache.org/jira/browse/GROOVY-7388
> Project: Groovy
> Issue Type: Bug
> Components: syntax
> Affects Versions: 2.4.3
> Environment: OS: Arch Linux
> Kernel: x86_64 Linux 3.19.3-3-ARCH
> CPU: Intel Core i7-3770S CPU @ 3.9GHz
> GPU: GeForce GT 640M
> RAM: 7875MB
> Using IntelliJ IDEA 1:14.1.1-1
> Reporter: Czipperz
> Priority: Trivial
>
> Trying to use the `groovy.transform.etc` for the first time. When I run it, all works well until it gets to `org.codehaus.groovy.runtime.DefaultGroovyMethods.java`
> There are a few problems with how the {{public static <T> T[] plus(T[] left, xxx right)}} method. Where xxx is T[], Iterable<T> right, or Collection<T> right.
> In all of these cases, you just need to change:
> {{return (T[]) plus(...).toArray();}}
> to
> {{return (T[]) plus((Collection<T>)...).toArray();}}
> Problem solved if you follow these instructions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)