You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "James Baldassari (Updated) (JIRA)" <ji...@apache.org> on 2012/01/16 09:08:41 UTC

[jira] [Updated] (AVRO-993) Add methods back to GenericDatumReader that were removed in AVRO-839

     [ 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