[ https://issues.apache.org/jira/browse/LUCENE-4693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557275#comment-13557275 ]
Commit Tag Bot commented on LUCENE-4693: ---------------------------------------- [trunk commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1435191 LUCENE-4693: FixedBitset might return wrong results if words.length > actual words in the bitset > FixedBitset might return wrong results if words.length > actual words in the > bitset > ----------------------------------------------------------------------------------- > > Key: LUCENE-4693 > URL: https://issues.apache.org/jira/browse/LUCENE-4693 > Project: Lucene - Core > Issue Type: Bug > Components: core/other > Affects Versions: 4.0, 4.1 > Reporter: Simon Willnauer > Fix For: 4.2, 5.0 > > Attachments: LUCENE-4693.patch > > > Currently we allow to pass in the actual words as a long[] to the FixedBitSet > yet if this array is oversized with respect to the actual words it needs to > hold the bits the FixedBitSet can return wrong results since we use > words.length (bits.lenght) as the bounds when we iterate over the bits ie. if > we need to find the next set bit. We should use the actual bound rather than > the size of the array. > as a site note, I think it would be interesting to explore passing an offset > to this too to enable to create bitsets from slices.... -- 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org