[jira] [Resolved] (GROOVY-8046) ClassFormatError void field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (GROOVY-8046) ClassFormatError void field

JIRA jira@apache.org

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

Paul King resolved GROOVY-8046.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.5.0-beta-1

Proposed PR merged

> ClassFormatError void field
> ----------------------------
>
>                 Key: GROOVY-8046
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8046
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.7
>         Environment: jdk1.8.0_102
>            Reporter: Daniil Ovchinnikov
>            Assignee: Paul King
>             Fix For: 2.5.0-beta-1
>
>
> {code}
> class MyClass {
>   void field
>   static void main(String[] args) {}
> }
> {code}
> When run:
> {noformat}
> Exception in thread "main" java.lang.ClassFormatError: Field "field" in class MyClass has illegal signature "V"
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:119)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)