We're updating the issue view to help you get more done. 

Array of Primitive byte array won't deserialize in virgin factory (i.e. one that didn't build the serializer for serialization)

Description

Trying to serialize

class A(val a : Array<ByteArray>)

Throws an exception

NotSerializableException("Not able to deserialize array type: byte[p]")

We have an explicit coerscion of primiteive byte arrays into our BinaryType, but this isn't being seen in the recursive typename and we hit the exception. The actual problem though is that the array serializer is getting the type wrong whenn building, because it's not useing the code serialization helper, it's just applying [] or [p] to the typename of the array's componentType rather than converting as per everything else

Status

Assignee

Katelyn Baker

Reporter

Chris Rankin

Labels

None

Affected OS

None

Severity

Medium

Target Version/s

Corda 3.3

Feature Team

Corda Core

Fix versions

Priority

Medium