|
This test is not about Interceptor but about wrong meta-data injection in interceptor. Injection of Interceptor<Cream> in InterceptorField (instead of Interceptor<InterceptorField> is what is tested. And it does the job.
The spec is rather clear regarding the fact that Interceptors are bean in implicit terms here : http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#what_classes_are_beans or in more explicit way in this the recent clarification : http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#bean_defining_annotations
It is said nowhere that unused interceptor or decorators should be ignored by the container. Now that can be discussed but doesn't seem very interesting IMO.
Anyway this ticket is off topic and misleading.
|