Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-473

Use specific class type for case class serialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • None

    Description

      Just ran into a bug involving serializing case classes that contain arrays of other case classes: in that situation, we deserialize the nested array as an Array[Product] instead of Array[SpecificCaseClass]. The fix is pretty easy, we just need to use the actual runtime class (i.e., Class[SpecificCaseClass]) as the basis of the PType, instead of Class[Product].

      Attachments

        1. CRUNCH-473.patch
          4 kB
          Josh Wills

        Activity

          People

            Unassigned Unassigned
            jwills Josh Wills
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: