[
https://issues.apache.org/jira/browse/OWB-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg updated OWB-725:
------------------------------
Attachment: OWB-725_test.patch
This test demonstrates the issue. The @ApplicationScoped RequestModelProducer
gets destroyed when ending the request context because it gets added to the
CreationalContext of the produced @RequestScoped model.
> Beans containing a producerMethod are using the wrong CreationalContext
> -----------------------------------------------------------------------
>
> Key: OWB-725
> URL: https://issues.apache.org/jira/browse/OWB-725
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Context and Scopes
> Affects Versions: 1.1.6
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.1.7, 1.2.0
>
> Attachments: OWB-725_test.patch
>
>
> When an @ApplicationScoped Bean containing a producermethod has a @Dependent
> scoped injection point and produces a @Requestion bean then it will get
> destroyed with the produced @RequestScoped bean.
> This is actually wrong as it should survive until the end of the application
> and only then get destroyed!
--
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