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

Allow non-sequential int backed enums defined in IDL

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Security 2023-06-26, Security 2023-07-10

      1/ Remove this block from the IDL generator code.

      2/ Update test cases such as this one to expect success and move them to the appropriate test block.

      3/ Add an int backed enum to unittest.idl defining multiple, non-contiguous values.

      4/ Add unit tests to idl_test.cpp exercising static casts of these values to integers.

            Assignee:
            emilio.alvearcantu@mongodb.com Emilio Alvear Cantu (Inactive)
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: