You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by db...@apache.org on 2011/05/24 04:20:09 UTC
svn commit: r1126832 -
/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Author: dblevins
Date: Tue May 24 02:20:09 2011
New Revision: 1126832
URL: http://svn.apache.org/viewvc?rev=1126832&view=rev
Log:
OWB-573: Remove invalid checking of serializable fields of interceptors
Modified:
openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java?rev=1126832&r1=1126831&r2=1126832&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java Tue May 24 02:20:09 2011
@@ -1169,18 +1169,6 @@ public final class DefinitionUtil
//Check for injected fields in EJB @Interceptors
List<InterceptorData> stack = new ArrayList<InterceptorData>();
bean.getWebBeansContext().getEJBInterceptorConfig().configure(bean.getBeanClass(), stack);
- for(InterceptorData data : stack)
- {
- if(data.isDefinedInInterceptorClass())
- {
- AnnotationManager annotationManager = WebBeansContext.getInstance().getAnnotationManager();
- if(!annotationManager.checkInjectionPointForInterceptorPassivation(data.getInterceptorClass()))
- {
- throw new WebBeansConfigurationException("Enterprise bean : " + bean.toString() +
- " interceptors must have serializable injection points");
- }
- }
- }
}
// For every injection target bean