lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadav Har'El (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-504) FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
Date Thu, 29 Jun 2006 11:30:33 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-504?page=comments#action_12418446 ] 

Nadav Har'El commented on LUCENE-504:
-------------------------------------

Hi Otis, you did not comment on my patch (fuzzyquery.patch), which I think solves your objections
to Doron's previous patch. Do you also see problems in this patchl, or would prefer a different
approach to solving this issue?
If not, perhaps you can commit this patch?
Thanks in advance, Nadav.

> FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize
if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: LUCENE-504
>          URL: http://issues.apache.org/jira/browse/LUCENE-504
>      Project: Lucene - Java
>         Type: Bug

>   Components: Search
>     Versions: 1.9
>     Reporter: Joerg Henss
>     Priority: Minor
>  Attachments: BooleanQuery.java.diff, PriorityQueue.java.diff, TestFuzzyQueryError.java,
fuzzyquery.patch
>
> PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with
Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with
PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE
and user a FuzzyQuery for searching.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message