[
https://issues.apache.org/jira/browse/AVRO-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893983#comment-13893983
]
Doug Cutting commented on AVRO-1443:
------------------------------------
Re buildGenericRecord: what is the use case? More generally, I'm forgetting
the overall use case here. The description above says, "wherever a generic
record builder is expected, one should be able to supply a builder for a
specific record". When would someone want to pass a specific builder where a
generic builder is expected?
> SpecificRecord builders should share more functionality with GenericRecord
> builders
> -----------------------------------------------------------------------------------
>
> Key: AVRO-1443
> URL: https://issues.apache.org/jira/browse/AVRO-1443
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.5, 1.7.6
> Reporter: Christophe Taton
> Assignee: Christophe Taton
> Fix For: 1.8.0
>
> Attachments: AVRO-1443.20140126-182111-0800.diff,
> AVRO-1443.20140202-182611-0800.svndiff, AVRO-1443.20140204-124549-0800.diff
>
>
> Ideally, wherever a generic record builder is expected, one should be able to
> supply a builder for a specific record.
> That could happen by making SpecificRecordBuilderBase (and
> SpecificErrorBuilderBase?) a subclass of GenericRecordBuilder.
> Since SpecificRecordBase implements GenericRecord, it should be possible with
> minimal effort.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)