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

Use specific class type for case class serialization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: