[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1821) util.Work class does not properly handle java.lang.Errors when they are thrown
Chris Rudd (JIRA)
jira-events at lists.jboss.org
Mon Aug 20 15:29:18 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1821?page=comments#action_12372997 ]
Chris Rudd commented on JBSEAM-1821:
------------------------------------
In that case the VM is usually toast anyway, so it really doesnt matter.
So i would see two options, explicitly ignore the OOME, or only handle AssertionErrors.
The specific condition is that it IS a recoverable situation, but because the TM is never cleaned up its not.
> 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