[
https://issues.apache.org/jira/browse/AVRO-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847238#comment-13847238
]
Hudson commented on AVRO-1400:
------------------------------
SUCCESS: Integrated in AvroJava #406 (See
[https://builds.apache.org/job/AvroJava/406/])
AVRO-1400. Java: Add AvroDefault reflect annotation to specify default values.
(cutting: rev 1550260)
* /avro/trunk/CHANGES.txt
* /avro/trunk/lang/java/avro/src/main/java/org/apache/avro/Schema.java
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/AvroDefault.java
*
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java
*
/avro/trunk/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
> 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
> Assignee: Doug Cutting
> Labels: annotation, features, reflection, schema
> Fix For: 1.7.6
>
> 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)