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

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


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.2.1.CR2, 2.2.0.GA, 2.1.0.GA
            Reporter: Anahide Tchertchian


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