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

IDL should disallow optional and default for the same field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.10
    • None
    • IDL
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-07-10

    Description

      It does not make sense for a field to have a default value and be marked as optional. This needs to be an error in IDL and tests added. This came up in a recent code review.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: