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

TypeParameters for nested types are not properly collected

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.0.0
    • None
    • POJO
    • None

    Description

      public class A<T> {
          private List<List<T>> values;
      }
       
      public class B extends A<Float>{
          @BsonId
          private Integer id;
      }
      

      The type for values is not correctly captured and results in the codec registry looking for a handler for List<List<Object>> and not List<List<Float>>.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: