> From: Stefan Bodewig [mailto:[EMAIL PROTECTED] > On Mon, 7 Mar 2005, Matt Benson <[EMAIL PROTECTED]> wrote: > > That's what I thought, but the test got: > > > > [junit] java.lang.IllegalAccessError: tried to access > > method org.apache.tools > > .ant.DirectoryScanner.getScannedDirs()Ljava/util/Set; > > from class org.apache.tools.ant.DirectoryScannerTest > > How do you run the tests? > > Looks like a classloader issue (your test has been loaded from a > different classloader than the class to test which means they are not > inside the same package). > > There are other tests that rely on being in the same package, we > exclude them via the tests.and.ant.share.classloader property.
That's news to me. Could you explain a bit more the issue and how it's dealt with Stefan please? The tests are in the app classloader, no? We don't use Launcher in the tests, are we? Thus the Ant classes should be loaded by the same class loader, no? Thanks, --DD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]