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

ASF subversion and git services commented on AVRO-1400:
-------------------------------------------------------

Commit 1550260 from [~cutting] in branch 'avro/trunk'
[ https://svn.apache.org/r1550260 ]

AVRO-1400. Java: Add AvroDefault reflect annotation to specify default values.

> Introduce annotation to specify default values
> ----------------------------------------------
>
>                 Key: AVRO-1400
>                 URL: https://issues.apache.org/jira/browse/AVRO-1400
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.7.5
>            Reporter: dennis lucero
>              Labels: annotation, features, reflection, schema
>         Attachments: AVRO-1400.patch
>
>
> It would be nice if there was an annotation in org.apache.avro.reflect to 
> specify default values for schemata derived reflectively, allowing for proper 
> schema evolution.
> I suggest the following:
> {code:java}
> @AvroDefault(1)
> int someNum;
> @Nullable
> @AvroDefault(null)
> AnotherRecord myRec;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to