ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Preventing Parent Classloading
Date Fri, 10 Oct 2003 21:05:04 GMT
> -----Original Message-----
> From: Upayavira [mailto:uv@upaya.co.uk]
> Samuel Gabriel wrote:
> >We ran into this problem in one of our projects. The solution we found is
> to
> >override the loadClass method so that it looks into the classloader
> classes
> >before it looks into the parent classes. This way if there are classes
> that
> >are conflicting our classes will always be loaded first.
> >
> >
> Are you able to send me some sample code for your class loader? I've
> been trying to achieve that myself but with no luck.

Note that it's often dangerous to break the delegation model of class
loaders... Works sometimes, but be aware we're breaking the rules. --DD


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


Mime
View raw message