ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Baffled in classloader land
Date Fri, 31 Oct 2003 14:48:14 GMT
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> 
> Ok.  I figured it out.  I hate classloaders.
> 
> When I do a
> 
>    this.getClass().getClassLoader()
> 
> I get back
> 
>     org.apache.tools.ant.AntClassLoader@123ce0
> 
> which is of course the ant classloader and
> 
>    Thread.currentThread().getContextClassloader()
> 
> returns
> 
>    sun.misc.Launcher$AppClassLoader@1fc7a0
> 
> i.e. the primorial app classloader, as ant didn't set a context
> classloader for the thread, so we walk up the thread 'tree' to find one.

This sounds like a bug, no? Stefan? Why Ant wouldn't set the context
classloader? --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message