Decorable::declareDecorationWithOwner passes wrong owner pointer to its decorations

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.4
    • Affects Version/s: 3.7.2
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2018-02-26, Platforms 2018-03-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The Decorable::declareDecorationWithOwner call instantiates a constructor function, which passes the owner pointer given to the decorations container here. However, since Decorable is a super class of the class it is enhancing, the this pointer points to where the super class starts, not where the actual decorated class is. Because of this, decorations with owner receive the wrong owner pointer here.

              Assignee:
              ADAM Martin (Inactive)
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: