[jboss-user] [JBoss Microcontainer Users] - Re: Getting to a ClassInfo's ClassLoader

2009-10-14 Thread alesj
"flavia.rain...@jboss.com" wrote : | Don't you mean that, if the ModifiableClassInfo is modified, it delegates the loading to CtClass::toClass first, and only then to the JavassistUtil.class.getClassLoader()? | IMO, this is correct, given that CtClass.toClass() uses the ClassPool and the C

[jboss-user] [JBoss Microcontainer Users] - Re: Getting to a ClassInfo's ClassLoader

2009-10-14 Thread flavia.rain...@jboss.com
"alesj" wrote : How do we use it elsewhere/before? Before I added those getType.getClassLoader() calls, the null classloader was being used for loading and creating ctClasses instead. I don't think that classloader is retrieved elsewhere,apart from BasicClassAdapter.getClassLoader(), that also in

[jboss-user] [JBoss Microcontainer Users] - Re: Getting to a ClassInfo's ClassLoader

2009-10-14 Thread alesj
How do we use it elsewhere/before? Looking at the Javassist usage, it seems we need to change it a bit. |public Class getType() |{ | if(clazz == null) | clazz = JavassistUtil.ctClassToClass(ctClass); | | return clazz; |} | This first dele