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/26 04:30:00 UTC

[jira] [Resolved] (GROOVY-9756) MapConstructor generated code should be POJO aware

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

Paul King resolved GROOVY-9756.
-------------------------------
    Fix Version/s: 4.0.0-alpha-1
         Assignee: Paul King
       Resolution: Fixed

Proposed PR merged.

> 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
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 4.0.0-alpha-1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)