On Wed, 20 Feb 2002, Stephane Bailliez <[EMAIL PROTECTED]> wrote:

> ClassLoader cl = null;
> if (ClassLoader.getSystemResourceAsStream(testclass) != null){
>     cl = ClassLoader.getSystemClassLoader();
> } else {
>     cl = getClass().getClassLoader();
> }
> assertSame(context, cl);

will not work - the context classloader gets set to the
AntClassLoader, while getClass().getClassLoader() is the system
classloader (so cl would get the same value, in both branches).

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to