You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2011/05/03 01:18:03 UTC
[jira] [Commented] (AVRO-814) SpecificDatumReader.newRecord always
looks up the classname
[ https://issues.apache.org/jira/browse/AVRO-814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027912#comment-13027912 ]
Doug Cutting commented on AVRO-814:
-----------------------------------
I'm not exactly sure what you want to happen. Do you want a SpecificDatumReader(Class) to retain a pointer to the class and use that in newRecord()? If so, that will only work for the class of the top-level instance, nested classes would still use the class named in the schema.
> SpecificDatumReader.newRecord always looks up the classname
> -----------------------------------------------------------
>
> Key: AVRO-814
> URL: https://issues.apache.org/jira/browse/AVRO-814
> Project: Avro
> Issue Type: Bug
> Reporter: Stu Hood
>
> Even when given an instance of the record class, SpecificDatumReader looks up the Class in the SpecificData Class cache. This breaks decoding into subclasses of a generated record class without programmatically modifying the schema of the subclass, and is probably unnecessary.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira