[jira] [Closed] (GROOVY-7515) static initializers on trait fields are discarded

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

[jira] [Closed] (GROOVY-7515) static initializers on trait fields are discarded

JIRA jira@apache.org

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

Paul King closed GROOVY-7515.
-----------------------------
    Resolution: Duplicate
      Assignee: Paul King

I believe this is a duplicate. Since the other issue has a test case. I'll close this one.

> static initializers on trait fields are discarded
> -------------------------------------------------
>
>                 Key: GROOVY-7515
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7515
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.4
>            Reporter: Christopher Smith
>            Assignee: Paul King
>            Priority: Major
>
> Related to GROOVY-7514, I found that in addition to the {{final}} qualifier being discarded, the initializer is discarded as well, so the {{private static final}} field is {{null}} at runtime.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)