[SERVER-74017] Make IDL _anchorObj field and setter protected Created: 14/Feb/23  Updated: 29/Oct/23  Resolved: 16/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Kneiser Assignee: Matt Kneiser
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73050 Streamline logical branches in opObse... Closed
Related
is related to SERVER-67826 Ensure parsed IDL types own or preser... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-02-20
Participants:

 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.



 Comments   
Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Matt Kneiser', 'email': 'matt.kneiser@mongodb.com', 'username': 'themattman'}

Message: SERVER-74017 Make IDL _anchorObj field and setter protected
Branch: master
https://github.com/mongodb/mongo/commit/800a167c71bfa2273ad3217cab7f9a242db809a1

Generated at Thu Feb 08 06:26:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.