[ https://issues.apache.org/jira/browse/OWB-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038406#comment-13038406 ]
Mark Struberg commented on OWB-573: ----------------------------------- David, I think the code was actually ok, isn't? It just went through all the Interceptors and blow up if one of them is not Serializable. Of course, I think the method AnnotationManager#checkInjectionPointForInterceptorPassivation(Class<?> clazz) is buggy and should just test if the implementation is Serializable. > Invalid checking of Interceptor serialization capabilities > ---------------------------------------------------------- > > Key: OWB-573 > URL: https://issues.apache.org/jira/browse/OWB-573 > Project: OpenWebBeans > Issue Type: Bug > Components: Interceptor and Decorators > Reporter: David Blevins > Assignee: David Blevins > Fix For: 1.2.0 > > > DefinitionUtil invalidly checks the fields of Interceptor classes to see if > they are serializable. This isn't a requirement of the Interceptor > specification. As well in pure Java serialization terms, there is no > requirement that the class types of fields implement Serializable, so a field > of say java.lang.Object is OK. The requirement is that at serialization time > that field must point to a serializable instance or be null. This obviously > can only be checked by inspecting instances of a class and cannot be checked > statically against the class itself. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira