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
{{ message }}
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Can't deserialize a class extending ArrayList #318
api: firestoreIssues related to the googleapis/java-firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
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:
api: firestoreIssues related to the googleapis/java-firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity