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

Pascal Schumacher commented on GROOVY-7718:
-------------------------------------------

Thanks for reporting the issue and thanks for letting us know that it is fixed. 
:)

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

Reply via email to