You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/03/20 22:01:16 UTC
[jira] [Updated] (LUCENE-4865) BytesRefArray#append returns wrong
index (off by one)
[ https://issues.apache.org/jira/browse/LUCENE-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Willnauer updated LUCENE-4865:
------------------------------------
Attachment: LUCENE-4865.patch
here is a patch. I also renamed ord to index since it's really an index and not an ordinal.
> BytesRefArray#append returns wrong index (off by one)
> -----------------------------------------------------
>
> Key: LUCENE-4865
> URL: https://issues.apache.org/jira/browse/LUCENE-4865
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/other
> Affects Versions: 4.2
> Reporter: Simon Willnauer
> Priority: Minor
> Fix For: 5.0, 4.3, 4.2.1
>
> Attachments: LUCENE-4865.patch
>
>
> pretty simple thing the returned index is incremented before returned. I will add a test and upload a patch
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org