[ 
https://issues.apache.org/jira/browse/AVRO-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799348#comment-17799348
 ] 

ASF subversion and git services commented on AVRO-3377:
-------------------------------------------------------

Commit 3c466ee0c7e5b019e50d4ba9af7bf98add7d5232 in avro's branch 
refs/heads/main from Kyle Carter
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=3c466ee0c ]

AVRO-3377: Deserialization of record of mangled Java class throws 
ClassCastException (#1527)

* AVRO-3377: Mangle class identifier if required when initializing class

Use same mangling code that existed in the compiler (now moved to
the core library) to mangle type identifer so that the correct class
can be found more often.

* Cleaning up after merge

> Deserialization of record of mangled Java class throws ClassCastException
> -------------------------------------------------------------------------
>
>                 Key: AVRO-3377
>                 URL: https://issues.apache.org/jira/browse/AVRO-3377
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.11.0
>            Reporter: Kyle Carter
>            Assignee: Kyle Carter
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to