Fix accidental revert of ArraySerializer fix from CORDA-2050. (#5607)

This was originally part of a9d9b668 but has been lost somehow?!
This commit is contained in:
Chris Rankin 2019-10-17 17:47:46 +01:00 committed by Rick Parker
parent 62a5485107
commit 4dd51de5c1

View File

@ -90,7 +90,9 @@ open class ArraySerializer(override val type: Type, factory: LocalSerializerFact
context: SerializationContext
): Any {
if (obj is List<*>) {
return obj.map { input.readObjectOrNull(it, schemas, elementType, context) }.toArrayOfType(elementType)
return obj.map {
input.readObjectOrNull(redescribe(it, elementType), schemas, elementType, context)
}.toArrayOfType(elementType)
} else throw AMQPNotSerializableException(type, "Expected a List but found $obj")
}