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/15 06:36:00 UTC

[jira] [Updated] (GROOVY-9744) PropertyNode should be enriched to support getter/setter names

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

Paul King updated GROOVY-9744:
------------------------------
    Description: {{java.beans.PropertyDescriptor}} allows for arbitrary setting of read/write method names before defaulting to set/get/is prefix patterns. This change will allow Groovy's {{PropertyNode}} to have the same flexibility. The defaults will still be the same, so no change would normally be seen but we would then have the flexibility to represent slightly different scenarios, e.g. properties in Java Records could be represented using normal property nodes rather than some special representation. Once we have such an enhanced {{PropertyNode}}, there is more we could do such as produce {{BeanInfo}} classes as part of the the compilation process when needed but that is outside the scope of this issue.  (was: {{java.beans.PropertyDescriptor}} allows for arbitrary setting of read/write method names before defaulting to set/get/is prefix patterns. This change will allow Groovy's {{PropertyNode}} to have the same flexibility. The defaults will still be the same, so no change would normally be seen but we would then have the flexibility to represent e.g. Java Records using normal property nodes rather than some special representation. Once we have such an enhanced {{PropertyNode}}, there is more we could do such as produce {{BeanInfo}} classes as part of the the compilation process when needed but that is outside the scope of this issue.)

> PropertyNode should be enriched to support getter/setter names
> --------------------------------------------------------------
>
>                 Key: GROOVY-9744
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9744
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Priority: Major
>
> {{java.beans.PropertyDescriptor}} allows for arbitrary setting of read/write method names before defaulting to set/get/is prefix patterns. This change will allow Groovy's {{PropertyNode}} to have the same flexibility. The defaults will still be the same, so no change would normally be seen but we would then have the flexibility to represent slightly different scenarios, e.g. properties in Java Records could be represented using normal property nodes rather than some special representation. Once we have such an enhanced {{PropertyNode}}, there is more we could do such as produce {{BeanInfo}} classes as part of the the compilation process when needed but that is outside the scope of this issue.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)