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-710) GenericData.Array.get(int i) has a logic error (arises after clear() is called)
Date Mon, 13 Dec 2010 20:05:00 GMT

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

Doug Cutting updated AVRO-710:
------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

I committed this, changing it to only explicitly test the upper bound, since the lower bound
is checked by the array access.

Thanks, Bo, for finding this problem and supplying a patch!

> GenericData.Array.get(int i) has a logic error (arises after clear() is called)
> -------------------------------------------------------------------------------
>
>                 Key: AVRO-710
>                 URL: https://issues.apache.org/jira/browse/AVRO-710
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.0, 1.4.1, 1.5.0
>            Reporter: Bo Shi
>            Assignee: Bo Shi
>             Fix For: 1.5.0
>
>         Attachments: AVRO-710.patch
>
>
> The get(int i) method needs a check to ensure that i < size.

-- 
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