cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject is this a bug or rhino "feature"
Date Wed, 22 Sep 2004 12:40:23 GMT
> 	try {
> 		tx = PersistenceManager.session.beginTransaction();
> 		PersistenceManager.session["delete"]( depot ); // *1
> 		net.depots.remove( depot ); // *2 
> 	} catch ( ex ) {
> 		error = ex;
> 	} finally { 
> 		if ( error != null ) 
> 			tx.rollback();
> 		else
> 			tx.commit();
> 	}

if line *1 throws line *2 still gets executed. Isn't that a bug ?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message