Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-06 Thread Peter Levart
On Sunday 05 May 2002 18:56, you wrote: Give me some time and I'll try to write a surogate Clazz.forName(className, classLoader) method that would take into account all possible types (including primitives and their arrays) as suggested by Dr. Christoph Jung. Ok, here it is. I attached it to

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-05 Thread Peter Levart
On Friday 03 May 2002 06:24, Dain Sundstrom wrote: In org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory I have a method (convertToJavaClass) that does the name to array class conversion. Here is the core: int arraySize = 0; while(name.endsWith([])) { name =

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Scott M Stark
They should be the same thing as far as any of the docs I have read, but the observed difference is that Class.forName maintains a cache of Class objects keyed by name. Once a class is loaded by a given ClassLoader, it is that version of the class that is returned regardless of what the

RE: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread marc fleury
makes no sense to me, ask for clarification and example marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Hiram |Chirino |Sent: Thursday, May 02, 2002 7:30 PM |To: [EMAIL PROTECTED] |Subject: [JBoss-dev] getContextClassLoader() vs.

RE: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread marc fleury
|but the observed difference is that Class.forName maintains a cache |of Class objects keyed by name. Once a class is loaded by a given |ClassLoader, it is that version of the class that is returned regardless |of what the ClassLoader passed to Class.forName will return. We is that right? that

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Dain Sundstrom
In org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory I have a method (convertToJavaClass) that does the name to array class conversion. Here is the core: int arraySize = 0; while(name.endsWith([])) { name = name.substring(0, name.length()-2); arraySize++; } try {