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

@Delegate does not honor "includes" on properties - all properties are delegated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0-rc-2
    • Fix Version/s: 2.4.1
    • Component/s: xforms
    • Labels:
      None
    • Environment:
      All
    • Flags:
      Patch

      Description

      The @Delegate documentation states that the "includes" element is a

      "List of method and/or property names to include when delegating."

      However, the "includes" does not affect the delegating of property getters and setters. All properties from the delegate are currently delegated regardless of their inclusion in the "includes" element.

      Expected: When the includes element is provided on the @Delegate attribute, only the properties specified are delegated.

        Attachments

        1. DelegatePropertiesTest.groovy
          1 kB
          greg.ratliff
        2. delegate-properties.patch
          7 kB
          greg.ratliff

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              greg.ratliff greg.ratliff
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: