[
https://issues.apache.org/jira/browse/OWB-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625233#comment-13625233
]
Mark Struberg commented on OWB-816:
-----------------------------------
there are actually 2 concepts of ParentCreationalContext. The impl as we had it
in owb-1.0 and 1.1 is pretty ugly and close to be broken.
a.) for @Dependent instances itself. This is essentially a part of the
CreationalContext and is important if we inject @Dependent beans into
other@Dependent beans, forming a tree. We need to ensure that the child
instances get destroyed after the parent instances. But this can also be solved
by establishing a construction order (child first) and destroy it in the same
order.
b.) if a @Dependent bean gets injected into a @NormalScope bean then we still
store the CC of the NormalScoped bean in the CC of the dependent bean. But this
is actually wrong! the NormalScoped bean has it's own lifecycle and is not
depending on the dependent bean.
> OWB does not correctly serialize/deserialize InstanceImpl
> ---------------------------------------------------------
>
> Key: OWB-816
> URL: https://issues.apache.org/jira/browse/OWB-816
> Project: OpenWebBeans
> Issue Type: Bug
> Reporter: Arne Limburg
>
> parentCreationalContext is neither stored in serialization nor restored in
> deserialization. Don't know, if we should store it or recreate it on
> deserialisation.
> I guess, to correctly implement this, we should serialize it. Unfortunately
> that leads to a StackOverflowException currently.
--
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