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

CodecRegistryHelper.fromRegistries does not properly resolve Codecs

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: Codecs
    • 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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: