Re: Classloading and CompilerAdapter problem

2009-07-08 Thread Stefan Bodewig
On 2009-07-08, Hans Lund wrote: > I'm not sure if this is a bug, or just works as it should: depends on who you ask 8-) https://issues.apache.org/bugzilla/show_bug.cgi?id=11143 seems to think we should use the task's classloader instead of the context classloader. > Class.forName('') is

Classloading and CompilerAdapter problem

2009-07-08 Thread Hans Lund
Hi All I'm not sure if this is a bug, or just works as it should: but when using ant to invoke the java runtime compiler com.sun.tools.javac.Main this fails if ant is loaded from a parent ClassLoader to tools.jar even though tools.jar is in the current context classloader for the thread. It f