You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/03/06 23:13:01 UTC
[jira] [Closed] (GROOVY-8369) Enum property access not working with
@CompileStatic
[ https://issues.apache.org/jira/browse/GROOVY-8369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8369.
-----------------------------
> 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
> Assignee: Shil Sinha
> Priority: Major
> Fix For: 2.4.13
>
>
> {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
(v7.6.3#76005)