[jdom-interest] Bug in SAXHandler stack handling

Kim McCall mccall at rsv.ricoh.com
Fri May 4 17:41:54 PDT 2001


If, in the ROOT Element of a file, I refer to an internally-defined Entity,
I get an EmptyStackException.  A reference to the same Entity in a non-root
Element causes no such problems (though this bug makes me wonder whether
it's in fact doing the right thing).

Seems that the stack really is empty when SAXHandler.startEntity() calls
stack.peek().

I've attached two very simple files, accepted.xml and rejected.xml that
should illustrate the problem.

Thanks for all your work.

Kim McCall
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accepted.xml
Type: text/xml
Size: 266 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010504/5299895f/accepted.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rejected.xml
Type: text/xml
Size: 266 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010504/5299895f/rejected.xml


More information about the jdom-interest mailing list