You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/07/22 19:56:00 UTC

[jira] [Work logged] (AVRO-2069) Use primitive fields in generated getters & setters in Java code

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

ASF GitHub Bot logged work on AVRO-2069:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Jul/22 19:55
            Start Date: 22/Jul/22 19:55
    Worklog Time Spent: 10m 
      Work Description: samsafadi commented on PR #243:
URL: https://github.com/apache/avro/pull/243#issuecomment-1192891380

   > This can be an option at generation time for those that don't want to break compatibility (defaulting to the old way prior to 1.9).
   
   Was this option ever implemented? This change causes a lot of compatibility issues when upgrading from 1.8.2. Thanks!




Issue Time Tracking
-------------------

            Worklog Id:     (was: 794365)
    Remaining Estimate: 0h
            Time Spent: 10m

> Use primitive fields in generated getters & setters in Java code
> ----------------------------------------------------------------
>
>                 Key: AVRO-2069
>                 URL: https://issues.apache.org/jira/browse/AVRO-2069
>             Project: Apache Avro
>          Issue Type: Improvement
>    Affects Versions: 1.8.2
>            Reporter: Daniil Gitelson
>            Assignee: Daniil Gitelson
>            Priority: Major
>             Fix For: 1.9.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)