Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9744

PropertyNode should be enriched to support getter/setter names

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              paulk Paul King
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m