[jboss-cvs] JBossAS SVN: r94874 - projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 14 11:23:40 EDT 2009
Author: flavia.rainone at jboss.com
Date: 2009-10-14 11:23:40 -0400 (Wed, 14 Oct 2009)
New Revision: 94874
Modified:
projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistTypeInfoFactoryImpl.java
Log:
[JBREFLECT-58] Corrected a couple more calls to ClassPoolFactory.getClassPoolForLoader, by adding a non-null classloader parameter.
Modified: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistTypeInfoFactoryImpl.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistTypeInfoFactoryImpl.java 2009-10-14 15:16:25 UTC (rev 94873)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistTypeInfoFactoryImpl.java 2009-10-14 15:23:40 UTC (rev 94874)
@@ -601,7 +601,7 @@
public MutableClassInfo createNewMutableClass(String name, ClassInfo superClass)
{
- CtClass clazz = poolFactory.getPoolForLoader(null).makeClass(name, JavassistUtil.toCtClass(superClass));
+ CtClass clazz = poolFactory.getPoolForLoader(superClass.getType().getClassLoader()).makeClass(name, JavassistUtil.toCtClass(superClass));
return new JavassistTypeInfo(this, clazz, null);
}
@@ -613,7 +613,7 @@
public MutableClassInfo createNewMutableInterface(String name, ClassInfo superClass)
{
- CtClass clazz = poolFactory.getPoolForLoader(null).makeInterface(name, JavassistUtil.toCtClass(superClass));
+ CtClass clazz = poolFactory.getPoolForLoader(superClass.getType().getClassLoader()).makeInterface(name, JavassistUtil.toCtClass(superClass));
return new JavassistTypeInfo(this, clazz, null);
}
}
More information about the jboss-cvs-commits
mailing list