ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: [Patch] trying solve w2k command line length limitations
Date Mon, 07 Apr 2003 16:26:19 GMT
Stefan is *of course* right! Class.forName always uses the system class
loader, and not some current loader... As far as delegation happening,
that's ClassLoader 101. Unless of course one uses the second form of
Class.forName, that takes a classloader as argument, provided one doesn't
pass null for it, that is. Stefan was referring the first form, that takes
only a class name. --DD

-----Original Message-----
From: Ignacio J. Ortega [] 
Sent: Monday, April 07, 2003 11:23 AM
Subject: Re: [Patch] trying solve w2k command line length limitations

"Stefan Bodewig" <> escribió en el mensaje
> On Mon, 7 Apr 2003, Ignacio J. Ortega <> wrote:
> >> Which also implies that we'll need to go through Ant's codebase and
> >> replace all Class.forName() calls (we better do that anyway 8-).
> >
> > I didnt understand this, why?
> Class.forName will use the system classloader and not the nice little

IMHO This contradicts my experience of CLs, i think some places inside
tomcat used Class.forName also, and never seen what you say.. Class.forName
loads in the current loader and delegates to parent if needed AFAIK, but i'm
little far from the code.. now.. so i can be worng.. i'm not arguing only
very surprised, and trying to get to speed in the related facts..

Ignacio J.Ortega
Nevada Soft

View raw message