avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AVRO-83) specific generated code should optimize unions with null
Date Tue, 18 Aug 2009 22:10:14 GMT

     [ https://issues.apache.org/jira/browse/AVRO-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Doug Cutting updated AVRO-83:
-----------------------------

    Attachment: AVRO-83.patch

Here's a patch that implements this.  No new tests are required, since the handshake includes
unions with null that are generated by the specific compiler and tested.

> specific generated code should optimize unions with null
> --------------------------------------------------------
>
>                 Key: AVRO-83
>                 URL: https://issues.apache.org/jira/browse/AVRO-83
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.0.0
>            Reporter: Doug Cutting
>             Fix For: 1.0.1
>
>         Attachments: AVRO-83.patch
>
>
> The Java type generated for unions is Object, but a union between type T and null would
be better generated as just T, to avoid the need for casts.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message