[weld-issues] [JBoss JIRA] (WELD-1010) @PreDestroy method invoked twice

Ales Justin (Commented) (JIRA) jira-events at lists.jboss.org
Mon Nov 14 11:25:40 EST 2011


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

Ales Justin commented on WELD-1010:
-----------------------------------

https://github.com/alesj/core/commit/31b07b2fe9aecf6ae043015c830b0e9652c07594

                
> @PreDestroy method invoked twice
> --------------------------------
>
>                 Key: WELD-1010
>                 URL: https://issues.jboss.org/browse/WELD-1010
>             Project: Weld
>          Issue Type: Bug
>          Components: Scopes & Contexts
>    Affects Versions: 1.1.3.SP1
>         Environment: All
>            Reporter: wojtek k
>             Fix For: 1.2.0.Beta1
>
>
> @PreDestroy method on @Dependend scope is invoked twice when we use Bean.destroy() method.
> Problem occurs in destroy() method:
> getInjectionTarget().preDestroy(instance);
> creationalContext.release();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list