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

Make IDL _anchorObj field and setter protected

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2023-02-20

    Description

      For classes that derive from IDL base classes, there is a need to parse a BSONObj to the derived type as a deep copy. In order to accomplish this, the BSONObj anchor field needs to be owned by the derived class.

       

      Currently, the _anchorObj field and its setter - setAnchor() - are private. Making these protected will allow a derived class to have access to these members without redefining them.

      Attachments

        Activity

          People

            matt.kneiser@mongodb.com Matt Kneiser
            matt.kneiser@mongodb.com Matt Kneiser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: