Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35143

DecorationRegistry destroys decorations in the wrong order

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.5
    • Affects Version/s: 3.7.2
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Service Arch 2018-10-22, Service Arch 2018-11-05

      Prior to the fix for SERVER-33437, the DecorationRegistry destroyed decorations in the reverse of the order in which they were constructed. This was by design, to allow for a system in which decorations could be declared on a registry in a certain order, and a developer could expect decoration construction and destruction to proceed in an order similar to regular member variables – constructed in order of declaration, destroyed in reverse order.

      We should restore that ordering, in case anyone wishes to depend on it in the future, and we should test for it.

            Assignee:
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: