[Jboss-cvs] JBossAS SVN: r56971 - trunk/ejb3/src/main/org/jboss/ejb3/interceptor
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 19 09:57:59 EDT 2006
Author: thomas.diesler at jboss.com
Date: 2006-09-19 09:57:56 -0400 (Tue, 19 Sep 2006)
New Revision: 56971
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/interceptor/InterceptorInfoRepository.java
Log:
[JBCTS-322] Error initializing interceptors for TCK tests EJBVehicle
Add a temporary fix
Modified: trunk/ejb3/src/main/org/jboss/ejb3/interceptor/InterceptorInfoRepository.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/interceptor/InterceptorInfoRepository.java 2006-09-19 13:57:28 UTC (rev 56970)
+++ trunk/ejb3/src/main/org/jboss/ejb3/interceptor/InterceptorInfoRepository.java 2006-09-19 13:57:56 UTC (rev 56971)
@@ -744,8 +744,15 @@
{
if (!signatureValidator.checkValidLifecycle(method))
{
+ // FIXME: JBCTS-322
+ // This is just a hack that prevents the RTE below. Please fix appropriately.
+ if (ann.annotationType() == PostConstruct.class && method.getName().equals("ejbCreate"))
+ {
+ return method;
+ }
+
throw new RuntimeException("@" + ann.annotationType().getName()
- + " annotated method has the wrong signature - " + method);
+ + " annotated method has the wrong signature - " + method);
}
return method;
}
More information about the jboss-cvs-commits
mailing list