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 2020/09/23 06:29:00 UTC
[jira] [Created] (GROOVY-9756) MapConstructor generated code should
be POJO aware
Paul King created GROOVY-9756:
---------------------------------
Summary: MapConstructor generated code should be POJO aware
Key: GROOVY-9756
URL: https://issues.apache.org/jira/browse/GROOVY-9756
Project: Groovy
Issue Type: New Feature
Reporter: Paul King
Currently named arg generated code from {{@MapConstructor}} calls into {{ImmutableASTTransformation#checkPropNames}} which checks that all supplied properties are known at runtime before constructing the object. A {{@POJO}} class could have hard-coded code that checks named arg map keys against properties known at compile time.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)