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 2016/12/01 18:43:58 UTC

[jira] [Resolved] (GROOVY-8012) A class with a @MapConstructor when supplied with no args throws NPE

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

Paul King resolved GROOVY-8012.
-------------------------------
    Resolution: Fixed

Proposed PR merged

> A class with a @MapConstructor when supplied with no args throws NPE
> --------------------------------------------------------------------
>
>                 Key: GROOVY-8012
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8012
>             Project: Groovy
>          Issue Type: Bug
>          Components: xforms
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Minor
>
> {code}
> @groovy.transform.MapConstructor
> class Foo {
>     String bar
> }
> println new Foo(bar: 'baz').bar // OK
> println new Foo() // NPE
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)