[
https://issues.apache.org/jira/browse/OWB-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503540#comment-13503540
]
Mark Struberg commented on OWB-725:
-----------------------------------
The underlying problem is that currently all @Dependent beans which got created
during a producer method invocation get released at the end. Even if they are
part of a NormalScoped bean which gets injected during the producermethod
invocation. Thus we are currently releasing dependent beans of e.g. a
@ApplicationScoped bean which gets injected into a producermethod. That's just
wrong.
> 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