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

Paul King closed GROOVY-8203.
-----------------------------

> Add @Newify will cause ?. operator NPE
> --------------------------------------
>
>                 Key: GROOVY-8203
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8203
>             Project: Groovy
>          Issue Type: Bug
>          Components: xforms
>    Affects Versions: 2.4.11
>         Environment: Win 8.1, Oracle JDK 8u121, Groovy 2.4.11
>            Reporter: Huabin Zhang
>            Assignee: Paul King
>            Priority: Critical
>              Labels: features
>             Fix For: 2.4.12
>
>
> Hi, guys:
>     When I add {{@Newify}} annotation to a class and then use {{?.}} 
> operator, I'll get a NPE, please see the sample code as below:
> {code:java|title=Z.groovy|borderStyle=solid}
> @Newify(A)
> class Z {
>     static void main(String... args) {
>         def a
>         a?.get('b')
>     }
>     class A {
>     }
> }
> {code}



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

Reply via email to