[rhmessaging-commits] rhmessaging commits: r4483 - store/trunk/cpp/tests/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Oct 20 15:17:37 EDT 2011


Author: kpvdr
Date: 2011-10-20 15:17:37 -0400 (Thu, 20 Oct 2011)
New Revision: 4483

Modified:
   store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp
Log:
Fixed incorrect exception catching (by not using refs of the caught exception) in tests/jrnl/_st_helper_fns.hpp

Modified: store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp
===================================================================
--- store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp	2011-10-02 14:49:37 UTC (rev 4482)
+++ store/trunk/cpp/tests/jrnl/_st_helper_fns.hpp	2011-10-20 19:17:37 UTC (rev 4483)
@@ -626,7 +626,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -647,7 +647,7 @@
     if (dtp->done()) delete dtp;
     return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -669,7 +669,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -690,7 +690,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -712,7 +712,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -735,7 +735,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -753,7 +753,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 u_int64_t
@@ -771,7 +771,7 @@
         if (dtp->done()) delete dtp;
         return dtok_rid;
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 }
 
 void
@@ -792,7 +792,7 @@
         while (handle_jcntl_response(res, jc, aio_sleep_cnt, "read_msg", exp_ret, dtp))
             res = jc.read_data_record(&mp, msize, &xp, xsize, transient, external, dtp);
     }
-    catch (exception e) { delete dtp; throw; }
+    catch (exception& e) { delete dtp; throw; }
 
     if (mp)
         msg.assign((char*)mp, msize);



More information about the rhmessaging-commits mailing list