[cdi-dev] [JBoss JIRA] (CDI-77) Clarify what happens when the user creates a unbound recursive injection with Dependent scoped beans

Arne Limburg (JIRA) jira-events at lists.jboss.org
Wed Nov 13 18:20:05 EST 2013


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

Arne Limburg commented on CDI-77:
---------------------------------

Hmm, if we don't talk about constructor injection, this is not a problem at all. So I don't think, we should forbid this. And for constructor injection we could create a proxy. We already create proxies for Dependent beans (i.e. when they have interceptor bindings). So why should we not create a proxy in this situation?
                
> Clarify what happens when the user creates a unbound recursive injection with Dependent scoped beans
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CDI-77
>                 URL: https://issues.jboss.org/browse/CDI-77
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Resolution
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: TBD
>
>
> for example
> class Foo {
> @Inject Bar bar;
> }
> class bar {
> @Inject Foo foo;
> }

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