It appears that elements are are ignored (no mapping available and
strict is turned off) exercise a bug where a new namespaces instance is
constructed at element begin time, but it will not be reclaimed at the
matching closing tag. In large documents with ignored elements, this
can lead to hundreds (thousands!) of extra levels of namespace contexts
- while perhaps not critical in typical cases, it can be a killer (stack
overflow errors!) in long documents with ignored elements since every
startElement and endElement invocation calls
_namespaces.getNamespaceURI(String), which traverses all the way up the
stack.
I'm not sure the best way to handle this problem - the difficulty is
that a new context isn't started every time and the decision is made in
a different method than the ignored element detection.
I'm currently looking at castor-1.0 (final), though this issue exists at
least back to 1.0M3 (most likely earlier)
--
*Michael Thome*
BBN Technologies 10 Moulton St, Cambridge MA 02138 USA
phone: +1 617 873 1853
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------