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

TypeParameters for nested types are not properly collected

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.0.0
    • Affects Version/s: None
    • Component/s: POJO
    • Labels:
      None

      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>>.

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

              Created:
              Updated:
              Resolved: