[jira] [Commented] (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
Report Content as Inappropriate

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

JIRA jira@apache.org

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

ASF GitHub Bot commented on GROOVY-8046:

GitHub user paulk-asert opened a pull request:


    GROOVY-8046: ClassFormatError void field


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy8046

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #513
commit 2ee00c1733bdb7c489cdd4b7651c2cf5ea00b320
Author: paulk <[hidden email]>
Date:   2017-03-14T23:48:05Z

    GROOVY-8046: ClassFormatError void field


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