[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-330) NegativeArraySizeException if you use FullTextQuery.setMaxResults(Integer.MAX_VALUE)

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue May 12 11:25:13 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved HSEARCH-330.
---------------------------------------

    Resolution: Fixed

Made sure that calculateTopDocsRetrievalSize will not overrun and that at most Integer.MAX_VALUE-1 is returned. Using such a high value will, however, on many/most systems create OutOfMemoryExceptions since Lucene will instantiate an Object array with the specified size!

> NegativeArraySizeException if you use FullTextQuery.setMaxResults(Integer.MAX_VALUE)
> ------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-330
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-330
>             Project: Hibernate Search
>          Issue Type: Bug
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 3.1.1
>
>
> Seems to be a Lucene bug, but maybe we should add a work around?
> http://forum.hibernate.org/viewtopic.php?p=2401667

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

        



More information about the hibernate-issues mailing list