[jboss-cvs] JBossAS SVN: r82529 - projects/aop/trunk/asintegration-core/src/main/org/jboss/aop/classpool.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 09:24:54 EST 2008
Author: kabir.khan at jboss.com
Date: 2008-12-23 09:24:53 -0500 (Tue, 23 Dec 2008)
New Revision: 82529
Modified:
projects/aop/trunk/asintegration-core/src/main/org/jboss/aop/classpool/AbstractClassPoolDomain.java
Log:
[JBAOP-666] Fix parentclasspooldomain adapter lookup
Modified: projects/aop/trunk/asintegration-core/src/main/org/jboss/aop/classpool/AbstractClassPoolDomain.java
===================================================================
--- projects/aop/trunk/asintegration-core/src/main/org/jboss/aop/classpool/AbstractClassPoolDomain.java 2008-12-23 14:23:13 UTC (rev 82528)
+++ projects/aop/trunk/asintegration-core/src/main/org/jboss/aop/classpool/AbstractClassPoolDomain.java 2008-12-23 14:24:53 UTC (rev 82529)
@@ -69,13 +69,16 @@
clazz = getCachedOrCreateFromPoolParent(parentPool, classname, create);
}
- //We can use the exposed methods directly to avoid the overhead of NotFoundException
- clazz = parentPool.getCached(classname);
- if (clazz == null && create)
+ if (clazz == null)
{
- clazz = parentPool.createCtClass(classname, true);
+ //We can use the exposed methods directly to avoid the overhead of NotFoundException
+ clazz = parentPool.getCached(classname);
+ if (clazz == null && create)
+ {
+ clazz = parentPool.createCtClass(classname, true);
+ }
}
-
+
if (clazz == null && !parentPool.childFirstLookup)
{
clazz = getCachedOrCreateFromPoolParent(parentPool, classname, create);
More information about the jboss-cvs-commits
mailing list