[SERVER-29743] IDL should generate a default constructor Created: 20/Jun/17 Updated: 30/Oct/23 Resolved: 07/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | IDL |
| Affects Version/s: | 3.5.8 |
| Fix Version/s: | 3.5.12 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Mark Benvenuto |
| 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: | Platforms 2017-08-21 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
IDL code generator should generate a constructor that either: a. Default-value (as in what is defined in the IDL) initializes all POD members or call the default constructor This is to avoid scenarios where an instance of a idl generated class will have uninitialized member variables after construction. |
| Comments |
| Comment by Githook User [ 07/Aug/17 ] | |
|
Author: {'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}Message: | |
| Comment by Githook User [ 22/Jun/17 ] | |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: Also adds more descriptive error codes to be returned by the parser for the common error cases. | |
| Comment by Kaloian Manassiev [ 21/Jun/17 ] | |
|
While working on the write commands porting I hit an issue caused by this which resulted in a garbage value being written for boolean field:
|