[jdom-interest] ClassCastException

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Sep 10 08:39:40 PDT 2002


kenk at boxerlearning.com wrote:
> The assessment made on June 26 by Bob McWhirter was that the object being 
> created is an XMLReader, as loaded by one ClassLoader, but it's being cast to 
> XMLReader, loaded by a different ClassLoader, so the cast fails.

He's right

> What I'd like to know is:
> 1) Has this been officially reported as a bug in JDOM?

No, because this is not a JDOM bug but a JUnit issue.

> 2) Does anyone know of any plans to address the problem?

This problem seems fixed in JUnit 3.8 but you can patch JUnit 3.7 if you need 
to: You need to edit junit/runner/excluded.properties from the junit.jar file, 
add the following lines:
and update the JAR with the modified file.

Hope this helps,


More information about the jdom-interest mailing list