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

Unclear/incorrect definition of default behavior for trait multiple inheritence conflicts

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.12
    • 2.4.13
    • Documentation
    • None

    Description

      In section 2.10.1, Default conflict resolution, the text says "In this case, the default behavior is that methods from the last declared trait wins", when in fact the order they are implemented is what decides the winning method (and if this is what the wording was intending to say, then it isn't clear because the example has trait B declared after trait A as well as C implementing B after A).

      Attachments

        1. problem.png
          29 kB
          Sasha Volokh

        Issue Links

          Activity

            People

              jwagenleitner John Wagenleitner
              sashavol Sasha Volokh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: