[ https://issues.apache.org/jira/browse/GROOVY-8369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16227728#comment-16227728 ]
ASF GitHub Bot commented on GROOVY-8369: ---------------------------------------- GitHub user shils opened a pull request: https://github.com/apache/groovy/pull/625 GROOVY-8369: Statically compiled property access on enum class throws… … NoSuchFieldError You can merge this pull request into a Git repository by running: $ git pull https://github.com/shils/groovy GROOVY-8369 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/625.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #625 ---- commit 03fd268d814c491f1424f9fe8d8a0d30c5c333a5 Author: Shil Sinha <shil.si...@gmail.com> Date: 2017-10-31T17:29:19Z GROOVY-8369: Statically compiled property access on enum class throws NoSuchFieldError ---- > Enum property access not working with @CompileStatic > ---------------------------------------------------- > > Key: GROOVY-8369 > URL: https://issues.apache.org/jira/browse/GROOVY-8369 > Project: Groovy > Issue Type: Bug > Components: Static compilation > Affects Versions: 2.4.12 > Reporter: Paul King > > {code} > import groovy.transform.CompileStatic > enum Foo { } > @CompileStatic > def test() { > println Foo.getModifiers() // => 16401 // ENUM | FINAL | PUBLIC (see > GROOVY_8360 wrt STATIC) > println Foo.modifiers // java.lang.NoSuchFieldError: modifiers > } > test() > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)