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