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

IDL should generate a default constructor

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.12
    • Affects Version/s: 3.5.8
    • Component/s: IDL
    • Labels:
      None
    • Fully Compatible
    • Platforms 2017-08-21

      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
      b. Has arguments to initialize all member variables

      This is to avoid scenarios where an instance of a idl generated class will have uninitialized member variables after construction.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: