[jdom-interest] JDOMException and JDK 1.4

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Jun 13 00:52:29 PDT 2001


Alex Rosen wrote:

> JDK 1.4 has a new exception chaining mechanism, where you can specify that one
> exception is the "cause" of another exception. See java.lang.Throwable in
> http://java.sun.com/j2se/1.4/docs/api/index.html.
> 
> JDOM (along with a number of other APIs) has its own way of doing this, with
> JDOMException. It seems like a good idea to use the same method names in
> JDOMException as with the new Throwable (e.g. getCause() instead of
> getRootCause()). Same goes for BeanMapperException in contrib. Of course, we'd
> still need to keep the methods' implementations rather than just using
> Throwable's, so we can still run on earlier JDKs. We'd deprecate and eventually
> remove the existing method names.
> 
> I'd be happy to submit a patch. Any opinions?

+1 for adding 1.4 standard method and deprecating specific ones





More information about the jdom-interest mailing list