"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
"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
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