[
https://issues.apache.org/jira/browse/AVRO-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-1223:
-------------------------------
Attachment: AVRO-1223.patch
Here's a patch that adds a method to generated classes and enums like:
{code}
public static Schema getClassSchema() { return SCHEMA$; }
{code}
Does this look reasonable?
> Generated classes should provide a static accessor method for .SCHEMA
> ---------------------------------------------------------------------
>
> Key: AVRO-1223
> URL: https://issues.apache.org/jira/browse/AVRO-1223
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.7.3
> Reporter: Chris McConnell
> Priority: Trivial
> Attachments: AVRO-1223.patch
>
>
> Per discussion on the mailing list
> (http://mail-archives.apache.org/mod_mbox/avro-dev/201211.mbox/%3CCALEq1Z96u9t9VQHKsAhC0sU=x2a0j7ss3p7l6qfdm4-y7to...@mail.gmail.com%3E),
> we should add an accessor method to get the .SCHEMA$ field from generated
> Avro classes.
--
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