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

Mark Struberg (JIRA) jira-events at lists.jboss.org
Mon Sep 3 11:34:32 EDT 2012


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

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

looks good. You might add that getId() must return a unique Id (e.g. prefixed with the Extension name) and 

"If multiple IdentifiedAnnotatedTypes with the same class and Id get added, the container automatically detects the problem and treats it as a definition error."
                
> 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
>            Priority: Critical
>             Fix For: 1.1.PRD
>
>
> This decision is really important to make. Either we remove/redefine BeanManager#getAnnoatadType(Class) or we remove the 'artificial annotated types'.

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