[SERVER-78313] Allow non-sequential int backed enums defined in IDL Created: 21/Jun/23  Updated: 29/Oct/23  Resolved: 26/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Sara Golemon Assignee: Emilio Alvear Cantu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-78175 Define OCSF Category and Class Enums Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-06-26, Security 2023-07-10
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 26/Jun/23 ]

Author:

{'name': 'Emilio0404', 'email': 'emilio.alvear@hotmail.com', 'username': 'Emilio0404'}

Message: SERVER-78313 Removed restriction that prohibited non-sequential int backed enums in IDL
Branch: master
https://github.com/mongodb/mongo/commit/bc15bbc4376d94be39fe3748c996fcf5cab767d8

Generated at Thu Feb 08 06:38:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.