ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Stulsky" <vitaly_stul...@yahoo.com>
Subject Re: ClassLoader ?
Date Wed, 09 Aug 2000 22:53:32 GMT
As far as I understood the difference is in which ClassLoader space 'blah'
will be loaded. If you use *only* system class loader there is no
difference,
if you use your own class loaders you can drop into the problem (for example
with security), cause first method loads class in the namespace of system
(bootstrap)
class loader, second in the namespace of class from the left of .getClass().

And long awaited link:
http://www.artima.com/insidejvm/ed2/index.html
Read chapter 3,7 and 8 ... or better buy the book and read it.

Vitaly Stulsky


----- Original Message -----
From: David Weller <dgweller@yahoo.com>
To: <ant-dev@jakarta.apache.org>
Sent: Wednesday, August 09, 2000 12:18 PM
Subject: Re: ClassLoader ?


> > are either JVM specific or that brake tools. Many tools are
> > broken by adding classloaders because they use
> > Class.forName("blah") rather than
> > getClass().loadClass("blah").
> >
>
> Pete,
> Can you cite some references for this (preferring loadClass() over
forName())?
>
> I'm intrigued about the differences, because they both seem to be
extremely
> similar.
>
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/


Mime
View raw message