[jdom-interest] ClassCastException

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed Jun 26 20:27:32 PDT 2002

I'm continuing to investigate and there's something really weird 
going on here. build test behaves as normal. However, "build testui" 
results in a version of org.apache.xerces.parsers.SAXParser getting 
loaded which is *not* an instanceof XMLReader. However, if I run 
"build test" then the org.apache.xerces.parsers.SAXParser  loaded is 
an instanceof XMLReader. Curiouser and curiouser. Possibly the JUnit 
UI classes or Swing classes use an earlier, pre-XMLReader version of 
org.apache.xerces.parsers.SAXParser? So far I can't explain this.

Catching ClassCastExxception as suggested in my previous message does 
fix the problem.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |

More information about the jdom-interest mailing list