[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: |
|
||||||||||||||||
| 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: |