[jdom-interest] ClassCastException

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Sep 10 08:56:17 PDT 2002


At 11:10 AM -0400 9/10/02, kenk at boxerlearning.com wrote:

>How is it a bug in my code?  Is there a way I can write code so that I could
>get this to work?

Yes, but you'd have to get really intimate with class loaders, and 
it's probably not worth it. Class loading is just a huge honking mess.

>I see that JDOM.SAXBuilder has constructors where I can
>specify the saxDriverClass.  Could using one of those solve this problem?
>

No, not really.
-- 

+-----------------------+------------------------+-------------------+
| 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