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

Shil Sinha commented on GROOVY-7718:
------------------------------------

This error does not occur on 2_4_X or master.

> 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
>
> {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)

Reply via email to