avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-2069) Use primitive fields in generated getters & setters in Java code
Date Fri, 15 Sep 2017 12:53:00 GMT

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

Sean Busbey commented on AVRO-2069:
-----------------------------------

I like this as the approach going forward, but this will be an incompatible change. Should
we make a follow on jira to make a backwards compatible version for 1.8/1.7 (something like
getUnboxedFieldName in addition to getFieldName).

> Use primitive fields in generated getters & setters in Java code
> ----------------------------------------------------------------
>
>                 Key: AVRO-2069
>                 URL: https://issues.apache.org/jira/browse/AVRO-2069
>             Project: Avro
>          Issue Type: Improvement
>    Affects Versions: 1.8.2
>            Reporter: Daniil Gitelson
>            Assignee: Daniil Gitelson
>
> Currently, for primitive types (such as int, long, etc) generated getters and setters
return and accept java.lang.* boxed (while fields actually holds primitive values). This is
inefeccient and produces code boilerplate.
> Changed this behaviour in pull request: 
> https://github.com/apache/avro/pull/243



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message