You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jakob Zwiener (JIRA)" <ji...@apache.org> on 2014/01/30 13:36:08 UTC
[jira] [Commented] (LUCENE-5423) OpenBitSet hashCode and equals
incongruent
[ https://issues.apache.org/jira/browse/LUCENE-5423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886535#comment-13886535 ]
Jakob Zwiener commented on LUCENE-5423:
---------------------------------------
A pull request with a test and a possible fix has been sent on github.
> OpenBitSet hashCode and equals incongruent
> ------------------------------------------
>
> Key: LUCENE-5423
> URL: https://issues.apache.org/jira/browse/LUCENE-5423
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/other
> Affects Versions: 4.6.1
> Reporter: Jakob Zwiener
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> In org.apache.lucene.util.OpenBitSet the hashCode method might return different hash codes for equal bitsets.
> This happens when there are bits set in words right of wlen. This might happen through a getAndSet call (the documentation states that getAndSet may only be called on positions that are smaller than the size - which is the length of the array not wlen - this might be another issue).
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org