avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xander Uiterlinden <uiter...@gmail.com>
Subject Re: Does the builder of generated specific record's Java class handle nested Avro objects correctly?
Date Wed, 06 Aug 2014 16:37:21 GMT
First of all, sorry for flooding the mailing list, something was wrong with
my gmail setup. Regarding the package name, just ignore de graph. prefix, I
actually pasted the stacktrace I got before renaming the package. After
renaming the error is still there though. Shall I create a JIRA issue for
this ?


On Wed, Aug 6, 2014 at 6:23 PM, Lewis John Mcgibbney <
lewis.mcgibbney@gmail.com> wrote:

> Hi Xander,
>
> On Wed, Aug 6, 2014 at 7:17 AM, Xander Uiterlinden <uiterlix@gmail.com>
> wrote:
>
>>    {"name": "address", "type": ["test.model.Address", "null"] },
>>
>
>
> [snip]
>
>> java.lang.ClassCastException: org.apache.avro.generic.GenericData$Record
>> cannot be cast to graph.test.model.Address
>>
> why is the package name here now graph.test.model.Address?
>
>
>> Am I not using the builder the way it's meant to be used, or did I run
>> into a bug here ?
>>
>
>  It looks like you are using the builder properly. I don't see any trouble
> with that aspect of your code!
> Lewis
>

Mime
View raw message