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

Clueless Joe commented on AVRO-1961:
------------------------------------

Hi

For your information, I'm working on a PR based on branch 1.8 and java 6. I'll 
first submit one with isUnion and isNullable (or isOptional, since I'm not sure 
of the name).
It's taking a bit longer that I would hope for various reasons, I hope you 
don't mind it, if so let me know.

@[~Yibing] indeed the specs about default value says :
default: A default value for this field, used when reading instances that lack 
this field (optional). Permitted values depend on the field's schema type, 
according to the table below. Default values for union fields correspond to the 
first schema in the union. 

I'm thinking of testing the content of the generated file directly (generating 
the .java, accessing it through a File, then parsing it for expected content), 
so no need for Java 8.

@[~nielsbasjes] in the code I'm writing I don't include anything needing Java 8 
(so it could make it in the 1.8 branch I hope).

:)

> [JAVA] Generate getters that return an Optional
> -----------------------------------------------
>
>                 Key: AVRO-1961
>                 URL: https://issues.apache.org/jira/browse/AVRO-1961
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Niels Basjes
>            Assignee: Niels Basjes
>            Priority: Minor
>
> A colleague of mine indicated that having getters that return an Optional 
> (java 8 thingy) would be very useful for him.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to