Pavel created GROOVY-7718:
-----------------------------

             Summary: 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