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
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 =
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
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.
|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
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 {