tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r549660 - /tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java
Date Fri, 22 Jun 2007 01:23:58 GMT
Author: hlship
Date: Thu Jun 21 18:23:57 2007
New Revision: 549660

URL: http://svn.apache.org/viewvc?view=rev&rev=549660
Log:
TAPESTRY-1423: Tapestry IoC fails to get the correct class from javassist.CtClass when the
instance is already a proxy

Modified:
    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java

Modified: tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java?view=diff&rev=549660&r1=549659&r2=549660
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry/ioc/internal/services/ClassFactoryImpl.java
Thu Jun 21 18:23:57 2007
@@ -127,7 +127,10 @@
         // TODO: Is it worth caching this? Probably not as it usually is only
         // invoked perhaps at startup and in the event of errors.
 
-        CtClass ctClass = _classSource.getCtClass(method.getDeclaringClass());
+        Class declaringClass = method.getDeclaringClass();
+        Class effectiveClass = importClass(declaringClass);
+
+        CtClass ctClass = _classSource.getCtClass(effectiveClass);
 
         StringBuilder builder = new StringBuilder("(");
 



Mime
View raw message