[cdi-dev] [JBoss JIRA] (CDI-58) Clarify that there can be multiple AnnotatedType instances per Java class

Mark Struberg (Commented) (JIRA) jira-events at lists.jboss.org
Mon Nov 21 06:45:41 EST 2011


    [ https://issues.jboss.org/browse/CDI-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644279#comment-12644279 ] 

Mark Struberg commented on CDI-58:
----------------------------------

If we would like to allow multiple AnnotatedTypes per class, then I think there are still 2 occurrences which in the spec which must get fixed:

section 11.5.1 BeforeBeanDiscoveryEvent
The container must fire an event before it begins the bean discovery process. The event object must be of type javax.enterprise.inject.spi.BeforeBeanDiscovery:

This should mention the synthetical AnnotatedTypes


section 11.3.17. Obtaining an AnnotatedType for a class
The method BeanManager.createAnnotatedType(Class<T> type) returns an AnnotatedType that may be used to read the annotations of a given Java class or interface.

In OWB we return the 'effective' AnnotatedType of a class. Means if you exchanged/modified the AnnotatedType in ProcessAnnoatedType, you will get the changed one. By allowing multiple AnnotatedTypes per class this is not possible anymore as it is ambiguous.

                
> Clarify that there can be multiple AnnotatedType instances per Java class
> -------------------------------------------------------------------------
>
>                 Key: CDI-58
>                 URL: https://issues.jboss.org/browse/CDI-58
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Beans, Portable Extensions
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: 1.1.EDR2
>
>


--
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