Actual types passed to generic POJO super classes and to generic collection fields are ignored #1313
Labels
api: firestore
Issues related to the googleapis/java-firestore API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Given the classes
if you try to deserialize into the sub-bean, you get
java.lang.IllegalStateException: Could not resolve type T
. Same is true for a base bean with a setter that takes a T parameter.While debugging this, I found that given the classes
deserializing into MapSubBean or MapBeanHolder, the code errs on the lenient side, and would accept any type of values into the
values
map.I have a proposed fix for both issues. Should I post a PR? The collection part of the fix might break existing code, so it may need to be excluded.
The text was updated successfully, but these errors were encountered: