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

ASF GitHub Bot logged work on AVRO-3377:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Sep/22 06:17
            Start Date: 01/Sep/22 06:17
    Worklog Time Spent: 10m 
      Work Description: clesaec commented on PR #1527:
URL: https://github.com/apache/avro/pull/1527#issuecomment-1233794098

   PR approved (_as code for mangle is moved from SpecificCompiler to 
SpecificData_) with some remarks : 
   
   - Mangle can transform word with point as "dummy.int.float" into 
"dummy.int$.float$" for example, as unmangle method only apply on last char 
(==> "dummy.int$.float" in our case).
   - Mangle only applies to reserved word, so transform "dummy$" to itself, 
while unmangle apply to all word (==> "dummy" in our case).
   - As it's a lot of static method, it may could be extract in external class.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 805412)
    Time Spent: 20m  (was: 10m)

> 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.11.2
>
>          Time Spent: 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