Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1809

DocumentCodec and DBObjectCodec treat nested Maps/Iterables differently

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.0.0
    • Codecs
    • None
    • Minor Change

    Description

      This is closely related to JAVA-1760. The fix was made for DBObjectCodec but DocumentCodec remained unchanged. Now, in DBObjectCodec, the Map interface takes precedence over the Iterable interface whereas in DocumentCodec, it the other way around.
      Since there are no compatibility issues to take care of, I suggest that DocumentCodec throw an error if "conflicting" interfaces are implemented by embedded objects.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: