[jdom-interest] Bug in SAXHandler stack handling

Jason Hunter jhunter at collab.net
Sat May 5 13:36:13 PDT 2001

Yes, this is a well known bug.  It's being fixed as part of a full
revamp of entities (details in TODO.txt).  Phil Nelson has some code
I'll be integrating prob'ly tomorrow.  Stay tuned.


Kim McCall wrote:
> 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
>   ------------------------------------------------------------------------
>                    Name: accepted.xml
>    accepted.xml    Type: XML Document (text/xml)
>                Encoding: quoted-printable
>                    Name: rejected.xml
>    rejected.xml    Type: XML Document (text/xml)
>                Encoding: quoted-printable

More information about the jdom-interest mailing list