You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/05/22 16:09:00 UTC

[jira] [Updated] (GROOVY-407) Static member variable causing ClassFormatError

     [ https://issues.apache.org/jira/browse/GROOVY-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles updated GROOVY-407:
-------------------------------
    Labels: ClassFormatError  (was: )

> Static member variable causing ClassFormatError
> -----------------------------------------------
>
>                 Key: GROOVY-407
>                 URL: https://issues.apache.org/jira/browse/GROOVY-407
>             Project: Groovy
>          Issue Type: Bug
>          Components: class generator
>            Reporter: Jamie McCrindle
>            Assignee: Jochen Theodorou
>            Priority: Major
>              Labels: ClassFormatError
>             Fix For: 1.0-JSR-3
>
>
> class StaticMember {
>         public static Long x = 0;
> }
> causes a:
> Exception in thread "main" java.lang.ClassFormatError: StaticMember (Bad string initial value)
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at groovy.lang.GroovyClassLoader.access$200(GroovyClassLoader.java:78)
>         at groovy.lang.GroovyClassLoader$ClassCollector.onClassNode(GroovyClassLoader.java:400)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)