lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shad Storhaug (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LUCENENET-529) ArgumentOutOfRangeException exception in Lucene.Net.Spatial.Util.FixedBitSet
Date Thu, 10 Aug 2017 20:08:00 GMT

     [ https://issues.apache.org/jira/browse/LUCENENET-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shad Storhaug closed LUCENENET-529.
-----------------------------------
    Resolution: Cannot Reproduce
      Assignee: Shad Storhaug  (was: Itamar Syn-Hershko)

I am closing this because no information has been provided about how to reproduce the original
problem, so we can't verify if this actually fixes anything in 4.8.0 or if this problem only
ever existed in 3.0.3 (which is no longer being maintained).

> ArgumentOutOfRangeException exception in Lucene.Net.Spatial.Util.FixedBitSet
> ----------------------------------------------------------------------------
>
>                 Key: LUCENENET-529
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-529
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Contrib
>    Affects Versions: Lucene.Net 3.0.3
>         Environment: x64 asp.net mvc 5
>            Reporter: John Diss
>            Assignee: Shad Storhaug
>         Attachments: lucene.net.contrib.spatial.patch, lucene.net.contrib.spatial.test.patch
>
>
> When the FixedBitSet is created it is initialized to MaxDoc length, however MaxDoc should
be a valid index in the set. Either the indices need to be modified in the Get and Set methods
or the set is grown by 1. Growing the set  requires the fewest code changes elsewhere.
> Index: src/contrib/Spatial/Util/FixedBitSet.cs
> ===================================================================
> --- src/contrib/Spatial/Util/FixedBitSet.cs	(revision 1545729)
> +++ src/contrib/Spatial/Util/FixedBitSet.cs	(working copy)
> @@ -52,7 +52,7 @@
>  
>  		public FixedBitSet(int numBits)
>  		{
> -			bits = new BitArray(numBits);
> +			bits = new BitArray(numBits+1);
>  		}
>  
>  		/// <summary>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message