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

Franz Amador (JIRA) noreply at atlassian.com
Fri Dec 7 18:19:56 EST 2007


@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


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