Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Version 2.1
-
None
-
None
-
Windows XP SP2
Description
While trying to build a project containing a large number of schemas, XMLBeans throws SchemaTypeLoaderException with the error message "Too many Strings (46252) ... index .... code 10".
After a quick glance at SchemaTypeSystemImpl.StringPool, the error message seems to be caused by the project having more schema element types than the hardcoded upper limit Short.MAX_VALUE, which is rough 32k.
Could someone please kindly clarify for me:
1. What is the significant of Short.MAX_VALUE ? Why Short.MAX_VALUE instead of something like Integer.MAX_VALUE?
2. Is it reasonable to ask for an increase in this upper limit?
3. Apart from splitting up my project into smaller modules with fewer element types, is there any other work-around solution for now?
Thanks!