Matus Abaffy commented on Bug WELD-1470

In your case, there is:

@Interceptors({HighPriorityInterceptor.class, LowPriorityInterceptor.class})
public class InterceptedEjb

and both interceptors "have" interceptor binding @Intercepted. Annotate the class InterceptedEjb by @Intercepted and its methods are intercepted twice by each of the two interceptors - firstly due to @Interceptors annotation and secondly due to the interceptor binding. It makes sense to me that each interceptor should be called no more than once for any intercepted method. The problem occurs when an interceptor is bound to a class using both the @Interceptors annotation and an interceptor binding: its @Priority annotation is not ignored in the sense that it is called again.


I uploaded a more complex scenario here: https://github.com/bafco/cdi-tck/commit/3ebad92c09c01e8c3a241ec050665a1e5fd2b320
(Order in the test determined also using '5.1 Defining Interceptor Order' (from Interceptor spec.): "For the same interceptor method type, interceptors declared using interceptor bindings are called after interceptors declared using the Interceptors annotation ..." -

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to