-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.9
-
Component/s: Internal Code
-
Server Programmability
The LogicalSessionId class inherits from Logical_session_id so that it can make use of the IDL-generated class' getters, setters, and parsing logic. The LogicalSessionId class is intended to be a value-add on top of the IDL-generated parsing code. This inheritance however makes it difficult to write code at the boundary between initialization and construction, because that requires casting from one type to the other.
We should revisit and clarify the way that C++ classes are meant to incorporate or compose with IDL-generated classes, and develop clear methods and guidelines for how to do that in a way that is more straightforward. We could consider recommending factory functions and static getters rather than using inheritance in cases like these.
- related to
-
SERVER-30763 Add support for relops in idl generated classes
- Closed
-
SERVER-30764 Add support for hashing in idl generated classes
- Closed