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

DecorationRegistry destroys decorations in the wrong order

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.5
    • 3.7.2
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2018-10-22, Service Arch 2018-11-05

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: