[jdom-interest] ClassCastException
Philip Nelson
panmanphil at yahoo.com
Wed Jun 26 22:44:39 PDT 2002
Just uncheck the box in the JUnit test gui that has to do with test reloading.
It uses it's own class loader (though I can't recall the exact reason) a
failure occurs because of an == call that would normally be true but isn't
because the instances are from a different class loader. Sorry this is from
memory but I did mention it when I checked in one of the last test suite
updates.
--- Elliotte Rusty Harold <elharo at metalab.unc.edu> wrote:
> 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/ |
> +----------------------------------+---------------------------------+
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
More information about the jdom-interest
mailing list