FAQ
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


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

Search Discussions

  • Joerg Henss (JIRA) at Mar 1, 2006 at 5:59 pm
    [ http://issues.apache.org/jira/browse/LUCENE-504?page=all ]

    Joerg Henss updated LUCENE-504:
    -------------------------------

    Attachment: TestFuzzyQueryError.java

    Simple test showing the error
    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: TestFuzzyQueryError.java

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-dev @
categorieslucene
postedMar 1, '06 at 2:54p
activeMar 1, '06 at 5:59p
posts2
users1
websitelucene.apache.org

1 user in discussion

Joerg Henss (JIRA): 2 posts

People

Translate

site design / logo © 2021 Grokbase