cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [C2][Avalon] Avoid Class.forName and getClassLoader()
Date Fri, 11 May 2001 19:56:25 GMT
Davanum Srinivas wrote:
> 
> Berin,
> 
> I noticed the use of getClassLoader().loadClass() in Avalon's DefaultComponentManager
and
> DefaultComponentSelector.java. We should be using Thread's getContextClassLoader first
*BEFORE*
> using either Class.forName() or getClassLoader.loadClass(). This will reduce problems
later....
> 
> See http://www.javageeks.com/Papers/ClassForName/DynLoad.pdf for more information. You
can also
> look into javax.xml.parsers.SAXParserFactory's code.

Let me read the paper before I commit anything.  This is a bugfix that will likely go into
Beta 2, as I am minutes from releasing Avalon 4.0b1 now.  Plus I want to fully understand
the problem so that I don't do a half-*ss job patching it.

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


Mime
View raw message