[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4739) Fix injection of seam components in reentrance cases

Anahide Tchertchian (JIRA) jira-events at lists.jboss.org
Wed Dec 8 08:06:32 EST 2010


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

Anahide Tchertchian updated JBSEAM-4739:
----------------------------------------

    Attachment: patch_JBSEAM-4739.diff


Attached a patch against svn tagged version of JBoss_Seam_2_1_0_SP1

> Fix injection of seam components in reentrance cases
> ----------------------------------------------------
>
>                 Key: JBSEAM-4739
>                 URL: https://jira.jboss.org/browse/JBSEAM-4739
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0.GA, 2.2.0.GA, 2.2.1.CR2
>            Reporter: Anahide Tchertchian
>         Attachments: patch_JBSEAM-4739.diff
>
>
> In reentrance cases (same component called twice recursively for instance), the component is not injected/disinjected correctly, which can leave the component in an invalid state.
> This is due to a misplaced check on injection state of the component in BijectionInterceptor.java: instead of being performed in the finally block, it should be placed in the catch block.
> This is useful in case of unexpected errors (to let the component in a valid state) but also in case of expected errors (for instance when a method performs a JSF validation and throws a ValidatorException).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list