[cdi-dev] [JBoss JIRA] (CDI-186) Interceptor bindings need clarification

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Oct 19 11:21:01 EDT 2012

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

Pete Muir resolved CDI-186.

    Resolution: Done

> Interceptor bindings need clarification
> ---------------------------------------
>                 Key: CDI-186
>                 URL: https://issues.jboss.org/browse/CDI-186
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Interceptors
>    Affects Versions: 1.1.EDR
>            Reporter: Jozef Hartinger
>            Assignee: Pete Muir
>             Fix For: 1.1.PRD
> As part of CDI-2, changes were made to the Interceptors chapter of the CDI specification. These changes need further clarification:
> {quote}
> Interceptor bindings defined on methods may override the interceptor bindings defined on classes.
> {quote}
> One way to interpret this is that the set of interceptor bindings defined on a method overrides the set of interceptor bindings defined on a class, which is clearly not the intended behavior.
> {quote}
> If the set of interceptor bindings of a bean
> or interceptor, including bindings inherited from stereotypes and other 
> interceptor bindings, has two instances of a certain interceptor binding type
> and the instances have different values of some annotation member, the bean 
> or interceptor must override the *inherited set* by definining an annotation 
> instance of its own, otherwise, the container automatically detects the problem
> and treats it as a definition error.
> {quote}
> Here again I would avoid referencing "the inherited set", since it's not clear what that means, and rather use wording similar to the section 2.4.4 - default scope of a stereotype.

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

More information about the cdi-dev mailing list