[cdi-dev] [JBoss JIRA] (CDI-202) Clarify when BeanManager.createBeanAttributes(AnnotatedMember) returns an alternative

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Fri Mar 9 06:48:36 EST 2012


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

Jozef Hartinger resolved CDI-202.
---------------------------------

      Assignee: Jozef Hartinger
    Resolution: Won't Fix


Actually, this is not an issue. A producer defined on an alternative is not automatically an alternative. See https://issues.jboss.org/browse/weld-930 for details.
                
> Clarify when BeanManager.createBeanAttributes(AnnotatedMember) returns an alternative
> -------------------------------------------------------------------------------------
>
>                 Key: CDI-202
>                 URL: https://issues.jboss.org/browse/CDI-202
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Beans
>    Affects Versions: 1.1.EDR1
>            Reporter: Jozef Hartinger
>            Assignee: Jozef Hartinger
>             Fix For: 1.1 (Proposed)
>
>
> Currently, a producer field/method is an alternative if it is annotated with @Alternative or an alternative stereotype or the class declaring the field/method is annotated this way. However, when the BeanManager.createBeanAttributes(AnnotatedMember) method is called, the container has no access to the bean that declares the member. Therefore, the specification should clarify whether the container
> * should examine the AnnotatedType for @Alternative or alternative stereotypes
> * should try to infer the declaring bean (probably not possible since multiple beans may exist, each of them possibly modified in the ProcessBeanAttributes phase, etc.)
> * should make an assumption (e.g. the bean that declares the returned BeanAttributes is always assumed not to be an alternative)

--
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 cdi-dev mailing list