You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pavel (JIRA)" <ji...@apache.org> on 2016/02/22 21:46:18 UTC

[jira] [Commented] (GROOVY-7718) java.lang.ClassFormatError: Illegal class name on runtime cast array to trait

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

Pavel commented on GROOVY-7718:
-------------------------------

It fixed. Thank you.

> java.lang.ClassFormatError: Illegal class name on runtime cast array to trait
> -----------------------------------------------------------------------------
>
>                 Key: GROOVY-7718
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7718
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.5
>            Reporter: Pavel
>             Fix For: 2.4.6
>
>
> {code:java}
> trait SimpleTrait {
> }
> def arr = ["one", 'two'] as String[];
> arr as SimpleTrait
> {code}
> Produce:
> {noformat}
> java.lang.ClassFormatError: Illegal class name "String;2_groovyProxy" in class file String;2_groovyProxy
> 	at ConsoleScript1.run(ConsoleScript1:6)
> {noformat}
> Possibly related to GROOVY-7650.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)