You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: Could not deserialize object. Can't convert object of type java.util.ArrayList to type io.blendeez.common.domain.model.internal.InternalFieldPath (found in field 'fieldDefinitions.[0].sourceFieldPath')
at com.google.cloud.firestore.CustomClassMapper.deserializeError(CustomClassMapper.java:563)
at com.google.cloud.firestore.CustomClassMapper.convertBean(CustomClassMapper.java:544)
Any additional information below
It seems the case where a bean extends an ArrayList is not properly handled in CustomClassMapper (only Map):
privatestatic <T> TconvertBean(Objecto, Class<T> clazz, DeserializeContextcontext) {
BeanMapper<T> mapper = loadOrCreateBeanMapperForClass(clazz);
if (oinstanceofMap) {
returnmapper.deserialize(expectMap(o, context), context);
} else {
throwdeserializeError(
context.errorPath,
"Can't convert object of type " + o.getClass().getName() + " to type " + clazz.getName());
}
}
FYI while switching the class attribute to a list it works:
Environment details
com.google.cloud:google-cloud-firestore:1.33.0
Windows 10
Java 11
1.33.0
Steps to reproduce
Code example
Stack trace
Any additional information below
It seems the case where a bean extends an ArrayList is not properly handled in CustomClassMapper (only Map):
FYI while switching the class attribute to a list it works: