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

Ales Justin (Resolved) (JIRA) jira-events at lists.jboss.org
Tue Nov 15 09:12:41 EST 2011


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

Ales Justin resolved WELD-1010.
-------------------------------

    Resolution: Done


Current fix uses impl detail to workaround the issue.

                
> @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
>            Assignee: Ales Justin
>             Fix For: 1.1.4.Final
>
>
> @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