[weld-issues] [JBoss JIRA] (WELD-986) Interceptors and decorators may not declare observer methods

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Sun Jan 15 12:05:18 EST 2012


     [ https://issues.jboss.org/browse/WELD-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Hartinger resolved WELD-986.
----------------------------------

         Assignee: Jozef Hartinger
    Fix Version/s: 1.2.0.Beta1
                   2.0.0.Alpha1
       Resolution: Done

    
> Interceptors and decorators may not declare observer methods
> ------------------------------------------------------------
>
>                 Key: WELD-986
>                 URL: https://issues.jboss.org/browse/WELD-986
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.1.2.Final
>         Environment: JBoss AS7
>            Reporter: Martin Kouba
>            Assignee: Jozef Hartinger
>             Fix For: 1.2.0.Beta1, 2.0.0.Alpha1
>
>
> CDI 1.0 section *10.4.2 Declaring an observer method* states:
> "Interceptors and decorators may not declare observer methods. If an interceptor or decorator has a method with a parameter annotated @Observes, the container automatically detects the problem and treats it as a definition error."
> There is no definition error detected for interceptor and decorator with observer method. However such observer methods are noop.
> TCK tests for this scenario (CDI 1.1 master branch):
> *org.jboss.jsr299.tck.tests.interceptors.definition.broken.observer.InterceptorWithObserverMethodTest*
> *org.jboss.jsr299.tck.tests.decorators.definition.broken.observer.DecoratorWithObserverMethodTest*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list