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

Stu Hood commented on AVRO-814:
-------------------------------

I guess what I'm proposing is that when given an object, newRecord would not 
bother to validate that it is the "correct" class.

> 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

Reply via email to