[jdom-interest] Beta 9 RC1 (new IOEXCEPTION tiny bug)

Jason Hunter jhunter at servlets.com
Fri Apr 11 14:00:21 PDT 2003


> In b8 the following lines required us to catch JDOMException,
> and forbade us from catching IOException, since it did not
> throw IOException.
> 
> In b9 these lines require us to catch IOException.
> 
> Going back and forth to time the differences between
> b8 and b9 require us to delete or add, respectively,
> the IOException exception handler.
> 
> private static SAXBuilder builder = new SAXBuilder();
> Document doc = builder.build(f);

Yep, this was an intentional change.  It's noted in CHANGES.txt with the
remark that it will require code changes.  The logic is that an
IOException shouldn't have been wrapped with a JDOMException.

-jh-



More information about the jdom-interest mailing list