[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-140?pag...
]
Emmanuel Bernard resolved HSEARCH-140.
--------------------------------------
Assignee: Emmanuel Bernard
Resolution: Fixed
Man you made my day. People have been ranting about this issue.
This is fixed in SVN by doing
int oldMaxLevel = maxLevel;
int potentialLevel = embeddedAnn.depth() + level;
if ( potentialLevel < 0 ) {
potentialLevel = Integer.MAX_VALUE;
}
maxLevel = potentialLevel > maxLevel ? maxLevel : potentialLevel;
level++;
let me know if that fix your problem
@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
Assignee: Emmanuel Bernard
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira