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 2015/12/22 14:59:46 UTC

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

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)