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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0-rc-2
    • 2.4.1
    • xforms
    • None
    • All
    • 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

            melix Cédric Champeau
            greg.ratliff greg.ratliff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: