CodecRegistryHelper.fromRegistries does not properly resolve Codecs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: Codecs
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This:

      	CodecRegistryHelper.fromRegistries(CodecRegistryHelper.fromCodec(new UuidCodec(UuidRepresentation.STANDARD)),
      		                                                    MongoClient.getDefaultCodecRegistry()));
      

      does not work as expected. The problem is that when the second registry creates, say, a DocumentCodec, it does so with no knowledge of the outer registry. When the Document Codec subsequently gets a UUIDCodec, it gets it from the second registry rather than the outer registry.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: