[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1821) util.Work class does not properly handle java.lang.Errors when they are thrown

Gavin King (JIRA) jira-events at lists.jboss.org
Mon Aug 20 14:42:18 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1821?page=comments#action_12372991 ] 
            
Gavin King commented on JBSEAM-1821:
------------------------------------

In case of an OOME, or worse, futzing about with the TM is really not a good idea. 

> util.Work class does not properly handle java.lang.Errors when they are thrown
> ------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1821
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1821
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Chris Rudd
>
> The util.Work class that manages transactions does not properly handle the case where a java.lang.Error is thrown. 
> When a java.lang.Error is thrown the transaction is not properly cleaned up, due to the catch block only catching Exceptions. Please add the following additional catch block :
> Work.javal line 55
> catch( Error e )
> {
>    if( begin )
>    {
>       log.debug("rolling back transaction");
>       userTransaction.rollback();
>    }
>    throw e;
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list