[jdom-interest] Bug in SAXHandler stack handling

philip.nelson at omniresources.com philip.nelson at omniresources.com
Sat May 5 13:39:48 PDT 2001

I can use these for test cases, thanks.  The current Entity implementation
is seriously broken.  I submitted a revised version that always expands
entities but we will have to work through the remaining issues before that
becomes part of the api.

In short, do whatever workaround you can and we'll have something soon.

By the way, what parser and JDOM version are you using?

> -----Original Message-----
> From: Kim McCall [mailto:mccall at rsv.ricoh.com]
> Sent: Friday, May 04, 2001 7:42 PM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Bug in SAXHandler stack handling
> 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

More information about the jdom-interest mailing list