]
Marius Bogoevici resolved WELD-238.
-----------------------------------
Resolution: Done
Resolved by revisions 4627/4628/4630.
Classes specified in beans.xml/interceptors should not need to be
annotated with @Interceptor
---------------------------------------------------------------------------------------------
Key: WELD-238
URL:
https://jira.jboss.org/jira/browse/WELD-238
Project: Weld
Issue Type: Bug
Components: Interceptors and Decorators
Affects Versions: 1.0.0.CR1
Reporter: Jozef Hartinger
Assignee: Marius Bogoevici
Fix For: 1.0.0.CR2
Currently, the RI requires every class defined in beans.xml under
"interceptors" element to be annotated with @Interceptor. Otherwise, the
container throws the following exception : "org.jboss.jsr299.tck.DeploymentError:
org.jboss.weld.DeploymentException: Class
org.jboss.jsr299.tck.tests.interceptors.definition.custom.Interceptor1 is enabled as an
interceptor, but it does not have the appropriate annotation"
However, this is too restrictive (and conflicting with the spec), since in case when the
interceptor is registered via portable extension (using custom implementation of the
Interceptor interface), the class should not be required to be annotated with
@Interceptor.
org.jboss.jsr299.tck.tests.interceptors.definition.custom.CustomInterceptorTest.testCustomAroundInvokeInterceptor()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: