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

property addition does not overwrite abstract getter definition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5.1
    • None
    • None

    Description

      interface IFace {
      List getFoos()
      String getBar()
      }

      abstract class AbClass {
      abstract IFace getFace()
      }

      class TheClass extends AbClass {
      IFace face = [
      getFoos :

      { [1, 2] }

      ,
      getBar :

      { 'aBar' }

      ] as IFace
      }

      new TheClass().face.foos

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              blackdrag Jochen Theodorou
              Votes:
              3 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: