groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shil Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8369) Enum property access not working with @CompileStatic
Date Wed, 01 Nov 2017 16:16:00 GMT

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

Shil Sinha commented on GROOVY-8369:
------------------------------------

Thanks for reviewing and handling the rest of the backports [~paulk]

> 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
(v6.4.14#64029)

Mime
View raw message