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

CodecRegistryHelper.fromRegistries does not properly resolve Codecs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Codecs
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      Java Sprint 15, Java Sprint 16

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            jeff.yemin Jeffrey Yemin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: