avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Baldassari (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-993) Add methods back to GenericDatumReader that were removed in AVRO-839
Date Mon, 16 Jan 2012 08:08:41 GMT

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

James Baldassari updated AVRO-993:
----------------------------------

    Attachment: AVRO-993.patch

Here's a patch for GenericDatumReader that adds the three missing methods back in with a deprecation
warning.  Internally they invoke the same methods on GenericData.
                
> Add methods back to GenericDatumReader that were removed in AVRO-839
> --------------------------------------------------------------------
>
>                 Key: AVRO-993
>                 URL: https://issues.apache.org/jira/browse/AVRO-993
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.6.0, 1.6.1
>            Reporter: James Baldassari
>            Assignee: James Baldassari
>         Attachments: AVRO-993.patch
>
>
> As part of AVRO-839 three methods were moved from GenericDatumReader to GenericData:
> * newRecord(Object, Schema)
> * createFixed(Object old, Schema schema)
> * createFixed(Object, byte[], Schema)
> Although their visibility is protected, they are part of the public API because GenericDatumReader
is public.  Therefore these methods should have been deprecated before being removed.  The
removal of these methods caused PIG-2463.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message