Uploaded image for project: 'Corda'
  1. CORDA-1545

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

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: None
    • Fix versions: Corda 3.3
    • Components: None
    • Labels:
      None
    • Severity:
      Medium
    • Target Version/s:
    • Feature Team:
      Corda Core
    • Sprint:

      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

        Attachments

          Activity

            People

            • Assignee:
              Katelyn.Baker Katelyn Baker
              Reporter:
              chris.rankin Chris Rankin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: