activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r652473 - in /activemq/activemq-cpp/trunk/src/main: activemq/exceptions/ActiveMQException.cpp activemq/exceptions/ActiveMQException.h decaf/lang/Exception.h
Date Thu, 01 May 2008 11:05:42 GMT
Author: tabish
Date: Thu May  1 04:05:42 2008
New Revision: 652473

URL: http://svn.apache.org/viewvc?rev=652473&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Fixing some issues on the code while re-inserting decaf into the amqcpp baseline, small crash
issue from errors in the ActiveMQException class.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.h
    activemq/activemq-cpp/trunk/src/main/decaf/lang/Exception.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.cpp?rev=652473&r1=652472&r2=652473&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.cpp Thu May
 1 04:05:42 2008
@@ -37,13 +37,16 @@
 : cms::CMSException(),
   decaf::lang::Exception() {
 
-    *this = ex;
+  this->message = ex.getMessage();
+  this->stackTrace = ex.getStackTrace();
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 ActiveMQException::ActiveMQException( const Exception& ex ) throw()
 : cms::CMSException() {
-    *this = ex;
+
+  this->message = ex.getMessage();
+  this->stackTrace = ex.getStackTrace();
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.h?rev=652473&r1=652472&r2=652473&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/exceptions/ActiveMQException.h Thu May 
1 04:05:42 2008
@@ -17,6 +17,7 @@
 #ifndef _ACTIVEMQ_EXCEPTIONS_ACTIVEMQEXCEPTION_H_
 #define _ACTIVEMQ_EXCEPTIONS_ACTIVEMQEXCEPTION_H_
 
+#include <activemq/util/Config.h>
 #include <cms/CMSException.h>
 #include <decaf/lang/Exception.h>
 #include <activemq/exceptions/ExceptionDefines.h>
@@ -29,8 +30,8 @@
     /*
      * Base class for all exceptions.
      */
-    class ActiveMQException : public cms::CMSException,
-                              public decaf::lang::Exception {
+    class AMQCPP_API ActiveMQException : public cms::CMSException,
+                                         public decaf::lang::Exception {
     public:
 
         /**

Modified: activemq/activemq-cpp/trunk/src/main/decaf/lang/Exception.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/lang/Exception.h?rev=652473&r1=652472&r2=652473&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/lang/Exception.h (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/lang/Exception.h Thu May  1 04:05:42 2008
@@ -34,7 +34,7 @@
      * Base class for all exceptions.
      */
     class DECAF_API Exception : public Throwable {
-    private:
+    protected:
 
         /**
          * The cause of this exception.



Mime
View raw message