[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-140) @IndexedEmbedded default depth is effectively 1 due to integer overflow

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Dec 7 22:47:56 EST 2007


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

Emmanuel Bernard updated HSEARCH-140:
-------------------------------------

    Fix Version/s: 3.0.1

> @IndexedEmbedded default depth is effectively 1 due to integer overflow
> -----------------------------------------------------------------------
>
>                 Key: HSEARCH-140
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-140
>             Project: Hibernate Search
>          Issue Type: Bug
>          Components: mapping
>    Affects Versions: 3.0.0.GA
>         Environment: Hibernate 3.2.5.ga
>            Reporter: Franz Amador
>             Fix For: 3.0.1
>
>
> DocumentBuilder.java line 236 uses the expression "embeddedAnn.depth() + level", which overflows to a large negative number if "embeddedAnn.depth()" has its default value of Integer.MAX_VALUE and "level" is greater than zero.  It then sets maxLevel to be that large negative number, which halts processing of any @IndexedEmbedded above level 0.

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