[cdi-dev] [JBoss JIRA] (CDI-276) Clarify that scope annotations shouldn't be used at injection points

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Oct 30 13:53:01 EDT 2012


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

Pete Muir commented on CDI-276:
-------------------------------

The issue with this one is that someone might want to define an extension that did allow this...
                
> Clarify that scope annotations shouldn't be used at injection points
> --------------------------------------------------------------------
>
>                 Key: CDI-276
>                 URL: https://issues.jboss.org/browse/CDI-276
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Contexts
>            Reporter: Nicklas Karlsson
>             Fix For: 1.1 (Proposed)
>
>
> Sometimes you see people trying to do
> @Inject @ApplicationScoped 
> private SomeRequestScopedBean sRSB;
> It should be clarified that this has no effect. Could even throw a validation exception at deployment.

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