activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1307618 [5/5] - in /activemq/activemq-cpp/trunk/activemq-cpp/src: examples/ examples/advisories/ examples/cmstemplate/ examples/consumers/ examples/topics/chat/ main/activemq/cmsutil/ main/activemq/core/ main/activemq/core/kernels/ main/ac...
Date Fri, 30 Mar 2012 21:17:23 GMT
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/CmsTemplateTest.h Fri
Mar 30 21:17:16 2012
@@ -70,7 +70,7 @@ namespace cmsutil{
                 priority = 0;
                 ttl = 0LL;
             }
-            virtual ~MySendListener() throw() {}
+            virtual ~MySendListener() {}
 
             virtual void onSend(const cms::Destination* destination,
                 cms::Message* message, int deliveryMode, int priority,
@@ -99,7 +99,7 @@ namespace cmsutil{
 
             FailSendListener() {
             }
-            virtual ~FailSendListener() throw() {}
+            virtual ~FailSendListener() {}
 
             virtual void onSend(const cms::Destination* destination,
                     cms::Message* message, int deliveryMode, int priority,
@@ -124,7 +124,7 @@ namespace cmsutil{
             MySessionCallback() {
                 session = NULL;
             }
-            virtual ~MySessionCallback() throw() {}
+            virtual ~MySessionCallback() {}
 
             virtual void doInCms(cms::Session* session) throw (cms::CMSException) {
                 this->session = session;
@@ -142,7 +142,7 @@ namespace cmsutil{
                 session = NULL;
                 producer = NULL;
             }
-            virtual ~MyProducerCallback() throw() {}
+            virtual ~MyProducerCallback() {}
 
             virtual void doInCms(cms::Session* session,
                     cms::MessageProducer* producer) throw (cms::CMSException) {

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnection.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnection.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnection.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnection.h Fri
Mar 30 21:17:16 2012
@@ -38,19 +38,19 @@ namespace cmsutil {
         DummyConnection(MessageContext* messageContext ) {
             this->messageContext = messageContext;
         }
-        virtual ~DummyConnection() throw() {}
+        virtual ~DummyConnection() {}
 
-        virtual const cms::ConnectionMetaData* getMetaData() const throw( cms::CMSException
) {
+        virtual const cms::ConnectionMetaData* getMetaData() const {
             return NULL;
         }
 
-        virtual void close() throw( cms::CMSException ) {
+        virtual void close() {
         }
 
-        virtual void start() throw( cms::CMSException ) {
+        virtual void start() {
         }
 
-        virtual void stop() throw( cms::CMSException ) {
+        virtual void stop() {
         }
 
         virtual cms::Session* createSession() throw ( cms::CMSException ) {

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnectionFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnectionFactory.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnectionFactory.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConnectionFactory.h
Fri Mar 30 21:17:16 2012
@@ -32,7 +32,7 @@ namespace cmsutil {
 
     public:
 
-        virtual ~DummyConnectionFactory() throw() {}
+        virtual ~DummyConnectionFactory() {}
 
         virtual cms::Connection* createConnection() throw ( cms::CMSException ) {
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConsumer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConsumer.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConsumer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyConsumer.h Fri
Mar 30 21:17:16 2012
@@ -41,7 +41,7 @@ namespace cmsutil {
             this->dest = dest;
             this->listener = NULL;
         }
-        virtual ~DummyConsumer() throw() {}
+        virtual ~DummyConsumer() {}
 
         virtual void close() {}
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessage.h Fri
Mar 30 21:17:16 2012
@@ -27,15 +27,15 @@ namespace cmsutil{
     {
     public:
 
-        virtual ~DummyMessage() throw() {}
+        virtual ~DummyMessage() {}
 
         virtual Message* clone() const { return NULL; }
 
-        virtual void acknowledge() const throw( cms::CMSException ){}
+        virtual void acknowledge() const {}
 
-        virtual void clearBody() throw ( cms::CMSException ){}
+        virtual void clearBody() {}
 
-        virtual void clearProperties() throw ( cms::CMSException ){}
+        virtual void clearProperties() {}
 
         virtual std::vector<std::string> getPropertyNames() const throw ( cms::CMSException
) {
             return std::vector<std::string>();
@@ -45,108 +45,99 @@ namespace cmsutil{
             return false;
         }
 
-        virtual bool getBooleanProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual bool getBooleanProperty( const std::string& name ) const {
             return false;
         }
 
-        virtual unsigned char getByteProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual unsigned char getByteProperty( const std::string& name ) const {
             return (unsigned char)0;
         }
-        virtual double getDoubleProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual double getDoubleProperty( const std::string& name ) const {
             return 0.0;
         }
 
-        virtual float getFloatProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual float getFloatProperty( const std::string& name ) const {
             return 0.0f;
         }
 
-        virtual int getIntProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual int getIntProperty( const std::string& name ) const {
             return 0;
         }
-        virtual long long getLongProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual long long getLongProperty( const std::string& name ) const {
             return 0LL;
         }
 
-        virtual short getShortProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual short getShortProperty( const std::string& name ) const {
             return 0;
         }
 
-        virtual std::string getStringProperty( const std::string& name ) const
-            throw( cms::CMSException ) {
+        virtual std::string getStringProperty( const std::string& name ) const {
             return "";
         }
 
         virtual void setBooleanProperty( const std::string& name,
-            bool value ) throw( cms::CMSException ) {}
+            bool value ) {}
 
         virtual void setByteProperty( const std::string& name,
-            unsigned char value ) throw( cms::CMSException ) {}
+            unsigned char value ) {}
 
         virtual void setDoubleProperty( const std::string& name,
-            double value ) throw( cms::CMSException ) {}
+            double value ) {}
 
         virtual void setFloatProperty( const std::string& name,
-            float value ) throw( cms::CMSException ) {}
-
+            float value ) {}
 
         virtual void setIntProperty( const std::string& name,
-            int value ) throw( cms::CMSException ) {}
+            int value ) {}
 
         virtual void setLongProperty( const std::string& name,
-            long long value ) throw( cms::CMSException ) {}
+            long long value ) {}
 
         virtual void setShortProperty( const std::string& name,
-            short value ) throw( cms::CMSException ) {}
+            short value ) {}
 
         virtual void setStringProperty( const std::string& name,
-            const std::string& value ) throw( cms::CMSException ) {}
+            const std::string& value ) {}
 
-        virtual std::string getCMSCorrelationID() const throw ( cms::CMSException ) {return
"";}
+        virtual std::string getCMSCorrelationID() const {return "";}
 
-        virtual void setCMSCorrelationID( const std::string& correlationId ) throw (
cms::CMSException ) {}
+        virtual void setCMSCorrelationID( const std::string& correlationId ) {}
 
-        virtual int getCMSDeliveryMode() const throw ( cms::CMSException ) { return 0; }
+        virtual int getCMSDeliveryMode() const { return 0; }
 
-        virtual void setCMSDeliveryMode( int mode ) throw ( cms::CMSException ) {}
+        virtual void setCMSDeliveryMode( int mode ) {}
 
-        virtual const cms::Destination* getCMSDestination() const throw ( cms::CMSException
) { return NULL; }
+        virtual const cms::Destination* getCMSDestination() const { return NULL; }
 
-        virtual void setCMSDestination( const cms::Destination* destination ) throw ( cms::CMSException
) {}
+        virtual void setCMSDestination( const cms::Destination* destination ) {}
 
-        virtual long long getCMSExpiration() const throw ( cms::CMSException ) { return 0LL;
}
+        virtual long long getCMSExpiration() const { return 0LL; }
 
-        virtual void setCMSExpiration( long long expireTime ) throw ( cms::CMSException )
{}
+        virtual void setCMSExpiration( long long expireTime ) {}
 
-        virtual std::string getCMSMessageID() const throw ( cms::CMSException ) { return
""; }
+        virtual std::string getCMSMessageID() const { return ""; }
 
-        virtual void setCMSMessageID( const std::string& id ) throw ( cms::CMSException
) {}
+        virtual void setCMSMessageID( const std::string& id ) {}
 
-        virtual int getCMSPriority() const throw ( cms::CMSException ) { return 0; }
+        virtual int getCMSPriority() const { return 0; }
 
-        virtual void setCMSPriority( int priority ) throw ( cms::CMSException ) {}
+        virtual void setCMSPriority( int priority ) {}
 
-        virtual bool getCMSRedelivered() const throw ( cms::CMSException ) { return false;
}
+        virtual bool getCMSRedelivered() const { return false; }
 
-        virtual void setCMSRedelivered( bool redelivered ) throw ( cms::CMSException ) {}
+        virtual void setCMSRedelivered( bool redelivered ) {}
 
-        virtual const cms::Destination* getCMSReplyTo() const throw ( cms::CMSException )
{ return NULL; }
+        virtual const cms::Destination* getCMSReplyTo() const { return NULL; }
 
-        virtual void setCMSReplyTo( const cms::Destination* destination ) throw ( cms::CMSException
) {}
+        virtual void setCMSReplyTo( const cms::Destination* destination ) {}
 
-        virtual long long getCMSTimestamp() const throw ( cms::CMSException ) { return 0LL;
}
+        virtual long long getCMSTimestamp() const { return 0LL; }
 
-        virtual void setCMSTimestamp( long long timeStamp ) throw ( cms::CMSException ) {}
+        virtual void setCMSTimestamp( long long timeStamp ) {}
 
-        virtual std::string getCMSType() const throw ( cms::CMSException ) { return ""; }
+        virtual std::string getCMSType() const { return ""; }
 
-        virtual void setCMSType( const std::string& type ) throw ( cms::CMSException
) {}
+        virtual void setCMSType( const std::string& type ) {}
 
     };
 }}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyMessageCreator.h
Fri Mar 30 21:17:16 2012
@@ -27,7 +27,7 @@ namespace cmsutil {
     class DummyMessageCreator : public MessageCreator {
     public:
 
-        virtual ~DummyMessageCreator() throw() {}
+        virtual ~DummyMessageCreator() {}
 
         virtual cms::Message* createMessage(cms::Session* session )
                     throw (cms::CMSException) {

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummyProducer.h Fri
Mar 30 21:17:16 2012
@@ -45,9 +45,9 @@ namespace cmsutil {
             this->dest = dest;
             this->messageContext = messageContext;
         }
-        virtual ~DummyProducer() throw() {}
+        virtual ~DummyProducer() {}
 
-        virtual void close() throw( cms::CMSException ){}
+        virtual void close() {}
 
         /**
          * Sends the message to the default producer destination, but does

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummySession.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummySession.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummySession.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/cmsutil/DummySession.h Fri
Mar 30 21:17:16 2012
@@ -43,7 +43,7 @@ namespace cmsutil {
             this->messageContext = messageContext;
         }
 
-        virtual ~DummySession() throw() {}
+        virtual ~DummySession() {}
 
         virtual void close() {}
 
@@ -58,8 +58,7 @@ namespace cmsutil {
         virtual void recover() {}
 
         virtual cms::MessageConsumer* createConsumer(
-            const cms::Destination* destination )
-                throw ( cms::CMSException ) {
+            const cms::Destination* destination ) {
 
             return new DummyConsumer(messageContext, destination, "", false);
         }
@@ -83,42 +82,40 @@ namespace cmsutil {
             const cms::Topic* destination,
             const std::string& name,
             const std::string& selector,
-            bool noLocal = false )
-                throw ( cms::CMSException ) { return NULL; }
+            bool noLocal = false ) { return NULL; }
 
         virtual cms::MessageProducer* createProducer( const cms::Destination* destination
)
-            throw ( cms::CMSException ) { return new DummyProducer(messageContext, destination);
}
+        { return new DummyProducer(messageContext, destination); }
 
         virtual cms::QueueBrowser* createBrowser( const cms::Queue* queue )
-            throw( cms::CMSException ) { return NULL; }
+        { return NULL; }
 
         virtual cms::QueueBrowser* createBrowser( const cms::Queue* queue, const std::string&
selector )
-            throw( cms::CMSException ) { return NULL; }
+        { return NULL; }
 
         virtual cms::Queue* createQueue( const std::string& queueName )
-            throw ( cms::CMSException ) {
+        {
             return new activemq::commands::ActiveMQQueue( queueName );
         }
 
-        virtual cms::Topic* createTopic( const std::string& topicName )
-            throw ( cms::CMSException ) {
+        virtual cms::Topic* createTopic( const std::string& topicName ) {
             return new activemq::commands::ActiveMQTopic( topicName );
         }
 
         virtual cms::TemporaryQueue* createTemporaryQueue()
-            throw ( cms::CMSException ) { return NULL; }
+            { return NULL; }
 
         virtual cms::TemporaryTopic* createTemporaryTopic()
-            throw ( cms::CMSException ){ return NULL; }
+            { return NULL; }
 
         virtual cms::Message* createMessage()
-            throw ( cms::CMSException ){ return NULL; }
+            { return NULL; }
 
         virtual cms::BytesMessage* createBytesMessage()
-            throw ( cms::CMSException){ return NULL; }
+            { return NULL; }
 
         virtual cms::BytesMessage* createBytesMessage(
-            const unsigned char* bytes, int bytesSize ) throw ( cms::CMSException){
+            const unsigned char* bytes, int bytesSize ) {
             return NULL;
         }
 
@@ -134,7 +131,7 @@ namespace cmsutil {
         virtual cms::MapMessage* createMapMessage()
             throw ( cms::CMSException ){ return NULL; }
 
-        virtual cms::Session::AcknowledgeMode getAcknowledgeMode() const throw ( cms::CMSException
) {
+        virtual cms::Session::AcknowledgeMode getAcknowledgeMode() const {
             return mode;
         }
 
@@ -142,12 +139,11 @@ namespace cmsutil {
             this->mode = mode;
         }
 
-        virtual bool isTransacted() const throw ( cms::CMSException ){
+        virtual bool isTransacted() const {
             return mode==cms::Session::SESSION_TRANSACTED;
         }
 
-        virtual void unsubscribe( const std::string& name )
-            throw ( cms::CMSException ){}
+        virtual void unsubscribe( const std::string& name ) {}
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/core/ActiveMQSessionTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/core/ActiveMQSessionTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/core/ActiveMQSessionTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/core/ActiveMQSessionTest.cpp
Fri Mar 30 21:17:16 2012
@@ -59,7 +59,7 @@ namespace core{
             this->ack = ack;
         }
 
-        virtual ~MyCMSMessageListener() throw() {
+        virtual ~MyCMSMessageListener() {
             clear();
         }
 
@@ -71,7 +71,7 @@ namespace core{
             messages.clear();
         }
 
-        virtual void onMessage( const cms::Message* message ) throw() {
+        virtual void onMessage( const cms::Message* message ) {
 
             synchronized( &mutex ) {
                 if( ack ){

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/IOTransportTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/IOTransportTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/IOTransportTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/IOTransportTest.cpp
Fri Mar 30 21:17:16 2012
@@ -49,8 +49,9 @@ public:
 
     virtual unsigned char getDataStructureType() const { return 1; }
 
-    virtual decaf::lang::Pointer<commands::Command> visit( activemq::state::CommandVisitor*
visitor )
-        throw( exceptions::ActiveMQException ) { return decaf::lang::Pointer<commands::Command>();
}
+    virtual decaf::lang::Pointer<commands::Command> visit( activemq::state::CommandVisitor*
visitor ) {
+        return decaf::lang::Pointer<commands::Command>();
+    }
 
     virtual std::string toString() const{ return ""; }
     virtual MyCommand* cloneDataStructure() const{
@@ -78,8 +79,7 @@ public:
     virtual bool hasNegotiator() const { return false; }
 
     virtual Pointer<Transport> createNegotiator(
-        const Pointer<transport::Transport>& transport )
-            throw( decaf::lang::exceptions::UnsupportedOperationException ) {
+        const Pointer<transport::Transport>& transport ) {
 
         return Pointer<wireformat::WireFormatNegotiator>();
     }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/transport/correlator/ResponseCorrelatorTest.cpp
Fri Mar 30 21:17:16 2012
@@ -49,7 +49,7 @@ namespace correlator{
         virtual unsigned char getDataStructureType() const { return 1; }
 
         virtual decaf::lang::Pointer<commands::Command> visit( activemq::state::CommandVisitor*
visitor )
-            throw( exceptions::ActiveMQException ) { return decaf::lang::Pointer<commands::Command>();
}
+        { return decaf::lang::Pointer<commands::Command>(); }
 
         virtual MyCommand* cloneDataStructure() const{
             MyCommand* command = new MyCommand;
@@ -83,7 +83,6 @@ namespace correlator{
         }
 
         virtual void oneway( const Pointer<Command>& command )
-            throw(IOException, decaf::lang::exceptions::UnsupportedOperationException)
         {
             synchronized( &mutex ){
                 requests.push( command );
@@ -92,7 +91,6 @@ namespace correlator{
         }
 
         virtual Pointer<Response> request( const Pointer<Command>& command
AMQCPP_UNUSED )
-            throw(IOException, decaf::lang::exceptions::UnsupportedOperationException)
         {
             throw decaf::lang::exceptions::UnsupportedOperationException(
                 __FILE__, __LINE__, "stuff" );
@@ -100,7 +98,6 @@ namespace correlator{
 
         virtual Pointer<Response> request( const Pointer<Command>& command
AMQCPP_UNUSED,
                                              unsigned int timeout AMQCPP_UNUSED )
-            throw(IOException, decaf::lang::exceptions::UnsupportedOperationException)
         {
             throw decaf::lang::exceptions::UnsupportedOperationException(
                 __FILE__, __LINE__, "stuff" );
@@ -121,7 +118,7 @@ namespace correlator{
             return this->listener;
         }
 
-        virtual void start() throw( decaf::io::IOException ){
+        virtual void start() {
             close();
 
             done = false;
@@ -129,10 +126,10 @@ namespace correlator{
             thread->start();
         }
 
-        virtual void stop() throw( decaf::io::IOException ){
+        virtual void stop() {
         }
 
-        virtual void close() throw( decaf::io::IOException ){
+        virtual void close() {
 
             done = true;
 
@@ -232,8 +229,7 @@ namespace correlator{
             return "";
         }
 
-        virtual void reconnect( const decaf::net::URI& uri )
-            throw( decaf::io::IOException ) {}
+        virtual void reconnect( const decaf::net::URI& uri ) {}
 
         virtual bool isReconnectSupported() const {
             return false;

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/marshal/BaseDataStreamMarshallerTest.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/marshal/BaseDataStreamMarshallerTest.h?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/marshal/BaseDataStreamMarshallerTest.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/activemq/wireformat/openwire/marshal/BaseDataStreamMarshallerTest.h
Fri Mar 30 21:17:16 2012
@@ -107,7 +107,7 @@ namespace marshal{
             virtual void tightUnmarshal( OpenWireFormat* wireFormat,
                                      commands::DataStructure* dataStructure,
                                      decaf::io::DataInputStream* dataIn,
-                                     utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                     utils::BooleanStream* bs )
              {
                 BaseDataStreamMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn,
bs );
 
@@ -130,7 +130,7 @@ namespace marshal{
 
             virtual int tightMarshal1( OpenWireFormat* wireFormat,
                                        commands::DataStructure* dataStructure,
-                                       utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                       utils::BooleanStream* bs )
             {
                 SimpleDataStructure* info =
                     dynamic_cast<SimpleDataStructure*>( dataStructure );
@@ -150,7 +150,7 @@ namespace marshal{
             virtual void tightMarshal2( OpenWireFormat* wireFormat,
                                         commands::DataStructure* dataStructure,
                                         decaf::io::DataOutputStream* dataOut,
-                                        utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                        utils::BooleanStream* bs )
             {
                 BaseDataStreamMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut,
bs );
 
@@ -174,7 +174,7 @@ namespace marshal{
 
             virtual void looseUnmarshal( OpenWireFormat* wireFormat,
                                          commands::DataStructure* dataStructure,
-                                         decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException
)
+                                         decaf::io::DataInputStream* dataIn )
             {
                 BaseDataStreamMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn
);
                 SimpleDataStructure* info =
@@ -196,7 +196,7 @@ namespace marshal{
 
             virtual void looseMarshal( OpenWireFormat* wireFormat,
                                        commands::DataStructure* dataStructure,
-                                       decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException
)
+                                       decaf::io::DataOutputStream* dataOut )
             {
                 SimpleDataStructure* info =
                     dynamic_cast<SimpleDataStructure*>( dataStructure );
@@ -290,7 +290,7 @@ namespace marshal{
             virtual void tightUnmarshal( OpenWireFormat* wireFormat,
                                      commands::DataStructure* dataStructure,
                                      decaf::io::DataInputStream* dataIn,
-                                     utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                     utils::BooleanStream* bs )
              {
                 BaseDataStreamMarshaller::tightUnmarshal( wireFormat, dataStructure, dataIn,
bs );
 
@@ -304,7 +304,7 @@ namespace marshal{
 
             virtual int tightMarshal1( OpenWireFormat* wireFormat,
                                        commands::DataStructure* dataStructure,
-                                       utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                       utils::BooleanStream* bs )
             {
                 ComplexDataStructure* info =
                     dynamic_cast<ComplexDataStructure*>( dataStructure );
@@ -319,7 +319,7 @@ namespace marshal{
             virtual void tightMarshal2( OpenWireFormat* wireFormat,
                                         commands::DataStructure* dataStructure,
                                         decaf::io::DataOutputStream* dataOut,
-                                        utils::BooleanStream* bs ) throw( decaf::io::IOException
)
+                                        utils::BooleanStream* bs )
             {
                 BaseDataStreamMarshaller::tightMarshal2( wireFormat, dataStructure, dataOut,
bs );
 
@@ -333,7 +333,7 @@ namespace marshal{
 
             virtual void looseUnmarshal( OpenWireFormat* wireFormat,
                                          commands::DataStructure* dataStructure,
-                                         decaf::io::DataInputStream* dataIn ) throw( decaf::io::IOException
)
+                                         decaf::io::DataInputStream* dataIn )
             {
                 BaseDataStreamMarshaller::looseUnmarshal( wireFormat, dataStructure, dataIn
);
                 ComplexDataStructure* info =
@@ -346,7 +346,7 @@ namespace marshal{
 
             virtual void looseMarshal( OpenWireFormat* wireFormat,
                                        commands::DataStructure* dataStructure,
-                                       decaf::io::DataOutputStream* dataOut ) throw( decaf::io::IOException
)
+                                       decaf::io::DataOutputStream* dataOut )
             {
                 ComplexDataStructure* info =
                     dynamic_cast<ComplexDataStructure*>( dataStructure );

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/CharArrayBufferTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/internal/nio/CharArrayBufferTest.cpp
Fri Mar 30 21:17:16 2012
@@ -53,8 +53,7 @@ namespace{
             return (int)this->value.length();
         }
 
-        virtual char charAt( int index ) const
-            throw( lang::exceptions::IndexOutOfBoundsException ) {
+        virtual char charAt( int index ) const {
 
             if( index > (int)this->value.length() ) {
                 throw decaf::lang::exceptions::IndexOutOfBoundsException(
@@ -65,8 +64,7 @@ namespace{
             return this->value.at( index );
         }
 
-        virtual CharSequence* subSequence( int start, int end ) const
-            throw( lang::exceptions::IndexOutOfBoundsException ) {
+        virtual CharSequence* subSequence( int start, int end ) const {
 
             if( start > end ) {
                 throw decaf::lang::exceptions::IndexOutOfBoundsException(

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/BufferedInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/BufferedInputStreamTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/BufferedInputStreamTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/BufferedInputStreamTest.cpp
Fri Mar 30 21:17:16 2012
@@ -160,13 +160,11 @@ namespace {
             return (int)numToRead;
         }
 
-        virtual void close() throw( decaf::io::IOException){
+        virtual void close() {
             this->closed = true;
         }
 
-        virtual long long skip( long long num )
-            throw ( io::IOException, lang::exceptions::UnsupportedOperationException ) {
-
+        virtual long long skip( long long num ) {
             return ( pos += (int)std::min( num, (long long)available() ) );
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/FilterInputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/FilterInputStreamTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/FilterInputStreamTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/FilterInputStreamTest.cpp Fri
Mar 30 21:17:16 2012
@@ -67,16 +67,16 @@ namespace {
             return len - pos;
         }
 
-        virtual void close() throw(IOException){
+        virtual void close() {
             this->closed = true;
         }
-        virtual long long skip( long long num ) throw ( io::IOException, lang::exceptions::UnsupportedOperationException
) {
+        virtual long long skip( long long num ) {
             return ( pos += (int)std::min( num, (long long)available() ) );
         }
 
     protected:
 
-        virtual int doReadByte() throw (IOException){
+        virtual int doReadByte() {
             if( this->isThrowOnRead() ) {
                 throw IOException(
                     __FILE__, __LINE__,
@@ -91,10 +91,7 @@ namespace {
         }
 
         virtual int doReadArrayBounded( unsigned char* buffer, int size,
-                                        int offset, int length )
-            throw ( decaf::io::IOException,
-                    decaf::lang::exceptions::IndexOutOfBoundsException,
-                    decaf::lang::exceptions::NullPointerException ) {
+                                        int offset, int length ) {
 
             int numToRead = std::min( length, available() );
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/InputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/InputStreamTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/InputStreamTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/InputStreamTest.cpp Fri Mar
30 21:17:16 2012
@@ -32,7 +32,7 @@ namespace{
 
         virtual ~MockInputStream() {}
 
-        virtual int doReadByte() throw( decaf::io::IOException ) {
+        virtual int doReadByte() {
             return 0;
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/OutputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/OutputStreamTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/OutputStreamTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/OutputStreamTest.cpp Fri Mar
30 21:17:16 2012
@@ -36,7 +36,7 @@ namespace {
 
         virtual ~MockOutputStream() {}
 
-        virtual void doWriteByte( unsigned char c ) throw( decaf::io::IOException ) {
+        virtual void doWriteByte( unsigned char c ) {
             buffer.push_back( c );
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/ReaderTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/ReaderTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/ReaderTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/ReaderTest.cpp Fri Mar 30 21:17:16
2012
@@ -54,7 +54,7 @@ namespace {
             this->current_offset = 0;
         }
 
-        virtual void close() throw( decaf::io::IOException ) {
+        virtual void close() {
             contents.clear();
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/io/WriterTest.cpp Fri Mar 30 21:17:16
2012
@@ -49,13 +49,13 @@ namespace {
             close();
         }
 
-        virtual void close() throw( decaf::io::IOException ) {
+        virtual void close() {
             flush();
             delete [] contents;
             contents = NULL;
         }
 
-        virtual void flush() throw( decaf::io::IOException ) {
+        virtual void flush() {
         }
 
         virtual void doWriteArrayBounded(

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/lang/ThreadTest.cpp Fri Mar 30
21:17:16 2012
@@ -329,7 +329,7 @@ namespace lang{
         Handler() : executed( false ) {
         }
 
-        virtual void uncaughtException( const Thread* t, const Throwable& error ) throw()
{
+        virtual void uncaughtException( const Thread* t, const Throwable& error ) {
             this->executed = true;
         }
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/MutexTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/MutexTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/MutexTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/concurrent/MutexTest.cpp
Fri Mar 30 21:17:16 2012
@@ -227,50 +227,39 @@ public:
     }
     virtual ~MyNotifiedThread(){}
 
-    virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual void lock() {
         mutex->lock();
     }
 
-    virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual bool tryLock() {
         return mutex->tryLock();
     }
 
-    virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual void unlock() {
         mutex->unlock();
     }
 
-    virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
-                               decaf::lang::exceptions::IllegalMonitorStateException,
-                               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait() {
 
         mutex->wait();
     }
 
-    virtual void wait( long long millisecs )
-        throw( decaf::lang::exceptions::RuntimeException,
-               decaf::lang::exceptions::IllegalMonitorStateException,
-               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait( long long millisecs ) {
 
         mutex->wait( millisecs );
     }
 
-    virtual void wait( long long millisecs, int nanos )
-        throw( decaf::lang::exceptions::RuntimeException,
-               decaf::lang::exceptions::IllegalArgumentException,
-               decaf::lang::exceptions::IllegalMonitorStateException,
-               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait( long long millisecs, int nanos ) {
 
         mutex->wait( millisecs, nanos );
     }
 
-    virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
-                                 decaf::lang::exceptions::IllegalMonitorStateException )
{
+    virtual void notify() {
 
         mutex->notify();
     }
 
-    virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
-                                    decaf::lang::exceptions::IllegalMonitorStateException
) {
+    virtual void notifyAll() {
 
         mutex->notifyAll();
     }
@@ -475,50 +464,39 @@ public:
     }
     virtual ~MyRecursiveLockThread(){}
 
-    virtual void lock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual void lock() {
         mutex->lock();
     }
 
-    virtual bool tryLock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual bool tryLock() {
         return mutex->tryLock();
     }
 
-    virtual void unlock() throw( decaf::lang::exceptions::RuntimeException ) {
+    virtual void unlock() {
         mutex->unlock();
     }
 
-    virtual void wait() throw( decaf::lang::exceptions::RuntimeException,
-                               decaf::lang::exceptions::IllegalMonitorStateException,
-                               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait()  {
 
         mutex->wait();
     }
 
-    virtual void wait( long long millisecs )
-        throw( decaf::lang::exceptions::RuntimeException,
-               decaf::lang::exceptions::IllegalMonitorStateException,
-               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait( long long millisecs ) {
 
         mutex->wait( millisecs );
     }
 
-    virtual void wait( long long millisecs, int nanos )
-        throw( decaf::lang::exceptions::RuntimeException,
-               decaf::lang::exceptions::IllegalArgumentException,
-               decaf::lang::exceptions::IllegalMonitorStateException,
-               decaf::lang::exceptions::InterruptedException ) {
+    virtual void wait( long long millisecs, int nanos ) {
 
         mutex->wait( millisecs, nanos );
     }
 
-    virtual void notify() throw( decaf::lang::exceptions::RuntimeException,
-                                 decaf::lang::exceptions::IllegalMonitorStateException )
{
+    virtual void notify() {
 
         mutex->notify();
     }
 
-    virtual void notifyAll() throw( decaf::lang::exceptions::RuntimeException,
-                                    decaf::lang::exceptions::IllegalMonitorStateException
) {
+    virtual void notifyAll() {
 
         mutex->notifyAll();
     }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/zip/DeflaterOutputStreamTest.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/zip/DeflaterOutputStreamTest.cpp?rev=1307618&r1=1307617&r2=1307618&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/zip/DeflaterOutputStreamTest.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/zip/DeflaterOutputStreamTest.cpp
Fri Mar 30 21:17:16 2012
@@ -78,7 +78,7 @@ namespace{
 
     protected:
 
-        void deflate() throw( IOException ) {
+        void deflate() {
             deflateFlag = true;
             DeflaterOutputStream::deflate();
         }



Mime
View raw message