Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3377

Deserialization of record of mangled Java class throws ClassCastException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.11.0
    • 1.11.1
    • java
    • None

    Description

      When a Java class based on a Avro schema is created that includes a mangled part of it's fully qualified name and a reusable class is not provided a ClassCastException is thrown. 

      This is an edge case and there is a work around in that the reusable class can be provided to get around this issue but being able to avoid this edge case would be preferred. 

      POC repo: https://github.com/kylec32/avromangledeserializationpoc

      Issue was discovered when testing: AVRO-3305

      Attachments

        Issue Links

          Activity

            People

              kylec32 Kyle Carter
              kylec32 Kyle Carter
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: