From: Sten Anderson <sten.anderson@me...> - 2002-03-21 18:45:34
Hi all, I'm not sure if this is the appropriate place for this, but here
It seems some people (including me) have been getting
"java.lang.LinkageError <class name> violates class loader" errors. This
error seems to occur because the class loader is reloading classes between
every test. In many cases this is probably desireable, but for some (I have
issues when I try to test XML related code) it causes this error.
In the graphical versions of the UI (awtui and swingui) the "reload classes"
box is checked "true" by default, so everytime the program starts the tests
will initially fail (until you manually and uncheck the box and rerun the
tests). As a suggestion, it might be nice to be able to specify whether the
class loader should reload between tests without recompiling the code.
Currently (in the 3.7 version) in BaseTestRunner this is hard coded into a
Properties object: fPreferences.put("loading", "true"); Perhaps having a
junit.properties file in a future release so users could specify this
without recompiling the code.
My apologies if this has already been addressed, or is a bad idea, or if
this is the wrong place for this message.