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

DocumentCodec and DBObjectCodec treat nested Maps/Iterables differently

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.0
    • Component/s: Codecs
    • None
    • Minor Change

      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.

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

              Created:
              Updated:
              Resolved: