activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq-cpp git commit: https://issues.apache.org/jira/browse/AMQCPP-587
Date Mon, 23 Nov 2015 17:16:15 GMT
Repository: activemq-cpp
Updated Branches:
  refs/heads/master 6ddd619ba -> b61e95c47


https://issues.apache.org/jira/browse/AMQCPP-587

Clone the exception being passed to XAException as the cause exception
to avoid a seg fault due to trying to delete a pointer to a reference. 

Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/b61e95c4
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/b61e95c4
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/b61e95c4

Branch: refs/heads/master
Commit: b61e95c47970f9ab946928674d9da35752f29413
Parents: 6ddd619
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon Nov 23 12:15:55 2015 -0500
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon Nov 23 12:15:55 2015 -0500

----------------------------------------------------------------------
 activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/b61e95c4/activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp b/activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp
index 1a155e6..cd5debd 100644
--- a/activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp
+++ b/activemq-cpp/src/main/activemq/core/ActiveMQTransactionContext.cpp
@@ -747,7 +747,7 @@ std::string ActiveMQTransactionContext::getResourceManagerId() const {
 ////////////////////////////////////////////////////////////////////////////////
 XAException ActiveMQTransactionContext::toXAException(decaf::lang::Exception& ex) {
     CMSException cmsEx = CMSExceptionSupport::create(ex);
-    XAException xae(ex.getMessage(), &cmsEx);
+    XAException xae(ex.getMessage(), cmsEx.clone());
     xae.setErrorCode(XAException::XAER_RMFAIL);
     return xae;
 }


Mime
View raw message