[weld-issues] [JBoss JIRA] Created: (WELD-238) Classes specified in beans.xml/interceptors should not need to be annotated with @Interceptor

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Fri Oct 30 09:57:05 EDT 2009


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list