avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@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:23:03 GMT
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