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

Support deserialization of records with generic parameters

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: POJO
    • None
    • Needed

      Add ParameterizedRecordCodec so that top level records can contain nested generic records eg:

      public record TestRecordWithListGenericConcrete(
         @BsonId ObjectId id, 
         TestRecordWithListGeneric<TestRecordEmbedded> nestedRecords) {
      }
      
      public record TestRecordWithListGeneric<T>(
          List<T> nestedRecords) {
      }
      

            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: