[
https://issues.apache.org/jira/browse/AVRO-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596862#comment-13596862
]
Alexandre Normand commented on AVRO-1268:
-----------------------------------------
I looked again some more at the testing of specific records. The only currently
available generated SpecificRecords live under avro-ipc and avro-mapred which
makes sense because for those to be available at compilation and made usable in
tests, they need to be generated at the pre-compilation phase of maven and
that's done by the maven-plugin that both avro-ipc and avro-mapred have the
luxury of being able to use. Both the {{compiler}} and the {{maven-plugin}}
modules can't use the maven-plugin to generate those at pre-compilation.
Is the correct solution to have the tests live in another module that could
depend on {{avro}}, {{compiler}} and the {{maven-plugin}}? This would be
analogous to have integration tests of the overall avro solution (at least of
those 3 modules I mentioned).
> Add java-class, java-key-class and java-element-class support for stringable
> types to SpecificData
> --------------------------------------------------------------------------------------------------
>
> Key: AVRO-1268
> URL: https://issues.apache.org/jira/browse/AVRO-1268
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.4
> Reporter: Alexandre Normand
> Assignee: Alexandre Normand
> Priority: Minor
> Fix For: 1.7.5
>
> Attachments: AVRO-1268.patch, AVRO-1268.patch
>
>
> Stringable types are java classes that can be serialized through strings
> (which require a single string constructor and a valid toString()
> implementation). ReflectData currently has support from stringable types but
> it would be desirable to get this feature with SpecificData.
> The work involves changes to the SpecificCompiler (depends on {{@java-class}}
> support in AVRO-1267) to generate the specific sources with the proper java
> type as well as moving the ReflectDatumReader and ReflectDatumWriter to read
> the java-class/java-key-class and java-element-class properties.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira