[weld-issues] [JBoss JIRA] Updated: (WELD-567) Weld should throw an exception if a resource producer field is defined with a scope other than @Dependent

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Wed Jul 21 18:44:52 EDT 2010


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

Stuart Douglas updated WELD-567:
--------------------------------

        Fix Version/s: 1.1.0.BETA1
    Affects Version/s: 1.0.1.Final
          Component/s: Producers (Methods, Fields and Disposers)


> Weld should throw an exception if a resource producer field is defined with a scope other than @Dependent
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WELD-567
>                 URL: https://jira.jboss.org/browse/WELD-567
>             Project: Weld
>          Issue Type: Feature Request
>          Components: Producers (Methods, Fields and Disposers)
>    Affects Versions: 1.0.1.Final
>            Reporter: Stuart Douglas
>             Fix For: 1.1.0.BETA1
>
>
> The spec does allow containers to support this, however in many cases it does not make sense, e.g. for an entity manager you can end up with a Conversation scoped proxy for a transaction scoped entity manager. 
> It would be better to disallow this altogether, both for portability reason and to prevent end user confusion.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list