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 2017/02/09 02:21:42 UTC

[jira] [Resolved] (GROOVY-8048) final fields for pre-compiled traits aren't processed correctly

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

Paul King resolved GROOVY-8048.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.4.9

Proposed PR merged

> final fields for pre-compiled traits aren't processed correctly
> ---------------------------------------------------------------
>
>                 Key: GROOVY-8048
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8048
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.8
>            Reporter: Paul King
>            Assignee: Paul King
>             Fix For: 2.4.9
>
>
> From slack:
> Testing 2.4.8 by running through the Grails tests (master branch) and seeing NPE's on some tests that exercise Traits.  Can be fairly quickly replicated by running `./gradlew :grails-plugin-interceptors:test`
> same tests pass in 2.4.7 up thru commit https://github.com/apache/groovy/commit/c00a75a89a15e46c2afacf6e72256cd4484bd5f1  which causes the tests to fail with NPE's, don't have a lot of time to look into it, just wanted to mention it
> the Trait class has a final property in it and when it's used it's null, removing the final modifier gets rid of the problem https://github.com/grails/grails-core/blob/master/grails-plugin-interceptors/src/main/groovy/grails/artefact/Interceptor.groovy#L113



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)