[jira] [Commented] (LUCENE-5423) OpenBitSet hashCode and equals incongruent

2014-01-30 Thread Jakob Zwiener (JIRA)

[ 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (LUCENE-5423) OpenBitSet hashCode and equals incongruent

2014-01-30 Thread Jakob Zwiener (JIRA)
Jakob Zwiener created LUCENE-5423:
-

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


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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org