You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/01 17:15:58 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15712511#comment-15712511 ]
ASF GitHub Bot commented on GROOVY-8012:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/466
GROOVY-8012: A class with a @MapConstructor when supplied with no arg…
…s throws NPE
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy8012
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/466.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #466
----
commit 8bb742c75c88423693657c7d8af5e71400ba2568
Author: paulk <pa...@asert.com.au>
Date: 2016-12-01T17:13:41Z
GROOVY-8012: A class with a @MapConstructor when supplied with no args throws NPE
----
> 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)