Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.9
-
Fix Version/s: 4.1
-
Labels:None
-
Number of attachments :
Description
Stax2ReaderAdapter keeps track of element nesting; but it gets off by one when getElementText() is called. This is caused because it will implicitly move stream to END_ELEMENT that matches START_ELEMENT; so adapter has incremented depth, but will not see END_ELEMENT explicitly.
It should, then, decrement depth when getElementText() is called.
Fixed in 4.0 branch (for 4.0.10 if that ever gets published), 4.1, trunk.