You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/07/02 21:04:50 UTC

svn commit: r960088 [6/9] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/cmsutil/ activemq/commands/ activemq/core/ activemq/io/ activemq/transport/failover/ activemq/transport/mock/ activemq/wireformat/stomp/ decaf/internal/io/ deca...

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImpl.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImpl.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImpl.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImpl.h Fri Jul  2 19:04:44 2010
@@ -76,7 +76,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void create() throw( decaf::io::IOException ) = 0;
+        virtual void create() = 0;
 
         /**
          * Accepts a new connection on the given Socket.
@@ -88,10 +88,7 @@ namespace net {
          * @throws SocketException if an error occurs while performing an Accept on the socket.
          * @throws SocketTimeoutException if the accept call times out due to SO_TIMEOUT being set.
          */
-        virtual void accept( SocketImpl* socket )
-            throw( decaf::io::IOException,
-                   decaf::net::SocketException,
-                   decaf::net::SocketTimeoutException ) = 0;
+        virtual void accept( SocketImpl* socket ) = 0;
 
         /**
          * Connects this socket to the given host and port.
@@ -107,10 +104,7 @@ namespace net {
          * @throws SocketTimeoutException if the connect call times out due to timeout being set.
          * @throws IllegalArguementException if a parameter has an illegal value.
          */
-        virtual void connect( const std::string& hostname, int port, int timeout )
-            throw( decaf::io::IOException,
-                   decaf::net::SocketTimeoutException,
-                   decaf::lang::exceptions::IllegalArgumentException ) = 0;
+        virtual void connect( const std::string& hostname, int port, int timeout ) = 0;
 
         /**
          * Binds this Socket instance to the local ip address and port number given.
@@ -122,8 +116,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void bind( const std::string& ipaddress, int port )
-            throw( decaf::io::IOException ) = 0;
+        virtual void bind( const std::string& ipaddress, int port ) = 0;
 
         /**
          * Sets the maximum queue length for incoming connection indications (a request to
@@ -135,8 +128,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void listen( int backlog )
-            throw( decaf::io::IOException ) = 0;
+        virtual void listen( int backlog ) = 0;
 
         /**
          * Gets the InputStream linked to this Socket.
@@ -145,8 +137,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual decaf::io::InputStream* getInputStream()
-            throw( decaf::io::IOException ) = 0;
+        virtual decaf::io::InputStream* getInputStream() = 0;
 
         /**
          * Gets the OutputStream linked to this Socket.
@@ -155,8 +146,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual decaf::io::OutputStream* getOutputStream()
-            throw( decaf::io::IOException ) = 0;
+        virtual decaf::io::OutputStream* getOutputStream() = 0;
 
         /**
          * Gets the number of bytes that can be read from the Socket without blocking.
@@ -165,15 +155,14 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual int available()
-            throw( decaf::io::IOException ) = 0;
+        virtual int available() = 0;
 
         /**
          * Closes the socket, terminating any blocked reads or writes.
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void close() throw( decaf::io::IOException ) = 0;
+        virtual void close() = 0;
 
         /**
          * Places the input stream for this socket at "end of stream". Any data sent to this
@@ -182,7 +171,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void shutdownInput() throw( decaf::io::IOException ) = 0;
+        virtual void shutdownInput() = 0;
 
         /**
          * Disables the output stream for this socket. For a TCP socket, any previously written
@@ -192,7 +181,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while attempting this operation.
          */
-        virtual void shutdownOutput() throw( decaf::io::IOException ) = 0;
+        virtual void shutdownOutput() = 0;
 
         /**
          * Gets the specified Socket option.
@@ -204,7 +193,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while performing this operation.
          */
-        virtual int getOption( int option ) const throw( decaf::io::IOException ) = 0;
+        virtual int getOption( int option ) const = 0;
 
         /**
          * Sets the specified option on the Socket if supported.
@@ -216,7 +205,7 @@ namespace net {
          *
          * @throws IOException if an I/O error occurs while performing this operation.
          */
-        virtual void setOption( int option, int value ) throw( decaf::io::IOException ) = 0;
+        virtual void setOption( int option, int value ) = 0;
 
         /**
          * Gets the port that this socket has been assigned.
@@ -286,7 +275,7 @@ namespace net {
           *
           * @throws IOException if an I/O error occurs while performing this operation.
           */
-         virtual void sendUrgentData( int data ) throw( decaf::io::IOException );
+         virtual void sendUrgentData( int data );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.cpp Fri Jul  2 19:04:44 2010
@@ -44,22 +44,20 @@ URI::URI() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI::URI( const URI& uri ) throw ( URISyntaxException ) {
+URI::URI( const URI& uri ) {
     this->uri = uri.uri;
     this->uriString = uri.uriString;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI::URI( const std::string& uri ) throw ( URISyntaxException) {
+URI::URI( const std::string& uri ) {
 
     this->uriString = uri;
     this->parseURI( uri, false );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI::URI( const std::string& scheme,
-          const std::string& ssp,
-          const std::string& fragment ) throw ( URISyntaxException ) {
+URI::URI( const std::string& scheme, const std::string& ssp, const std::string& fragment ) {
 
     std::string uri = "";
 
@@ -87,7 +85,7 @@ URI::URI( const std::string& scheme,
 URI::URI( const std::string& scheme, const std::string& userInfo,
           const std::string& host, int port,
           const std::string& path, const std::string& query,
-          const std::string& fragment ) throw ( URISyntaxException ) {
+          const std::string& fragment ) {
 
     if( scheme == "" && userInfo == "" && host == "" &&
         path == "" && query == "" && fragment == "" ) {
@@ -158,8 +156,7 @@ URI::URI( const std::string& scheme, con
 
 ////////////////////////////////////////////////////////////////////////////////
 URI::URI( const std::string& scheme, const std::string& host,
-          const std::string& path, const std::string& fragment )
-            throw ( URISyntaxException ) {
+          const std::string& path, const std::string& fragment ) {
 
     if( scheme == "" && host == "" && path == "" && fragment == "" ) {
         return;
@@ -215,7 +212,7 @@ URI::URI( const std::string& scheme, con
 ////////////////////////////////////////////////////////////////////////////////
 URI::URI( const std::string& scheme, const std::string& authority,
           const std::string& path, const std::string& query,
-          const std::string& fragment ) throw ( URISyntaxException ) {
+          const std::string& fragment ) {
 
     if( scheme != "" && !path.empty() && path.at(0) != '/' ) {
          throw URISyntaxException(
@@ -258,7 +255,7 @@ URI::URI( const std::string& scheme, con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void URI::parseURI( const std::string& uri, bool forceServer ) throw ( URISyntaxException ) {
+void URI::parseURI( const std::string& uri, bool forceServer ) {
 
     try{
         this->uri = URIHelper().parseURI( uri, forceServer );
@@ -490,8 +487,7 @@ bool URI::operator<( const URI& value ) 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI URI::create( const std::string uri )
-    throw ( lang::exceptions::IllegalArgumentException ) {
+URI URI::create( const std::string uri ) {
 
     try {
         return URI( uri );
@@ -762,7 +758,7 @@ void URI::setSchemeSpecificPart() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI URI::parseServerAuthority() const throw( URISyntaxException ) {
+URI URI::parseServerAuthority() const {
 
     URI newURI = *this;
 
@@ -890,8 +886,7 @@ URI URI::resolve( const URI& relative ) 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URI URI::resolve( const std::string& relative ) const
-    throw ( lang::exceptions::IllegalArgumentException ) {
+URI URI::resolve( const std::string& relative ) const {
 
     return resolve( create( relative ) );
 }
@@ -939,8 +934,7 @@ string URI::toString() const {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-URL URI::toURL() const
-    throw ( MalformedURLException, lang::exceptions::IllegalArgumentException ) {
+URL URI::toURL() const {
 
     if( !this->isAbsolute() ) {
         throw IllegalArgumentException(

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URI.h Fri Jul  2 19:04:44 2010
@@ -57,28 +57,36 @@ namespace net{
 
         /**
          * Constructs a URI as a copy of another URI
+         *
          * @param uri - uri to copy
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
-        URI( const URI& uri ) throw ( URISyntaxException );
+        URI( const URI& uri );
 
         /**
-         * Constructs a URI from the given string
+         * Constructs a URI from the given string.
+         *
          * @param uri - string uri to parse.
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
-        URI( const std::string& uri ) throw ( URISyntaxException );
+        URI( const std::string& uri );
 
         /**
          * Constructs a URI from the given components.
+         *
          * @param scheme - the uri scheme
          * @param ssp - Scheme specific part
          * @param fragment - Fragment
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
-        URI( const std::string& scheme,
-             const std::string& ssp,
-             const std::string& fragment ) throw ( URISyntaxException );
+        URI( const std::string& scheme, const std::string& ssp, const std::string& fragment );
 
         /**
          * Constructs a URI from the given components.
+         *
          * @param scheme - Scheme name
          * @param userInfo - User name and authorization information
          * @param host - Host name
@@ -86,11 +94,13 @@ namespace net{
          * @param path - Path
          * @param query - Query
          * @param fragment - Fragment
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
         URI( const std::string& scheme, const std::string& userInfo,
              const std::string& host, int port,
              const std::string& path, const std::string& query,
-             const std::string& fragment ) throw ( URISyntaxException );
+             const std::string& fragment );
 
         /**
          * Constructs a URI from the given components.
@@ -98,10 +108,11 @@ namespace net{
          * @param host - Host name
          * @param path - Path
          * @param fragment - Fragment
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
         URI( const std::string& scheme, const std::string& host,
-             const std::string& path, const std::string& fragment )
-                 throw ( URISyntaxException );
+             const std::string& path, const std::string& fragment );
 
         /**
          * Constructs a URI from the given components.
@@ -110,10 +121,12 @@ namespace net{
          * @param path - Path
          * @param query - Query
          * @param fragment - Fragment
+         *
+         * @throws URISyntaxException if the URI passed is malformed.
          */
         URI( const std::string& scheme, const std::string& authority,
              const std::string& path, const std::string& query,
-             const std::string& fragment ) throw ( URISyntaxException);
+             const std::string& fragment );
 
         virtual ~URI() {}
 
@@ -308,7 +321,7 @@ namespace net{
          * @throws URISyntaxException - If the authority component of this URI is
          * defined but cannot be parsed as a server-based authority.
          */
-        URI parseServerAuthority() const throw ( URISyntaxException );
+        URI parseServerAuthority() const;
 
         /**
          * Relativizes the given URI against this URI.  The relativization of the
@@ -338,8 +351,7 @@ namespace net{
          * @returns The resulting URI
          * @throws IllegalArgumentException - If the given string violates RFC 2396
          */
-        URI resolve( const std::string& str ) const
-            throw ( lang::exceptions::IllegalArgumentException );
+        URI resolve( const std::string& str ) const;
 
         /**
          * Resolves the given URI against this URI.
@@ -403,8 +415,7 @@ namespace net{
          * @throws MalformedURLException - If a protocol handler for the URL could not
          * be found, or if some other error occurred while constructing the URL
          */
-        URL toURL() const
-            throw ( MalformedURLException, lang::exceptions::IllegalArgumentException );
+        URL toURL() const;
 
     public:   // Static Methods
 
@@ -413,11 +424,12 @@ namespace net{
          * This convenience factory method works as if by invoking the URI(string)
          * constructor; any URISyntaxException thrown by the constructor is caught
          * and wrapped in a new IllegalArgumentException object, which is then thrown.
+         *
          * @param uri - URI string to parse
+         *
          * @throws IllegalArgumentException
          */
-        static URI create( const std::string uri )
-            throw ( lang::exceptions::IllegalArgumentException );
+        static URI create( const std::string uri );
 
     private:
 
@@ -429,7 +441,7 @@ namespace net{
          * @param forceServer - should a server authority be enforced.
          * @throws URISyntaxException if an error occurs.
          */
-        void parseURI( const std::string& uri, bool forceServer ) throw ( URISyntaxException );
+        void parseURI( const std::string& uri, bool forceServer );
 
         /*
          * Quote illegal chars for each component, but not the others

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.cpp Fri Jul  2 19:04:44 2010
@@ -44,8 +44,7 @@ Buffer::Buffer( const Buffer& other ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Buffer& Buffer::position( int newPosition )
-    throw( lang::exceptions::IllegalArgumentException ) {
+Buffer& Buffer::position( int newPosition ) {
 
     if( newPosition < 0 || newPosition > this->_limit ) {
         throw IllegalArgumentException(
@@ -63,7 +62,7 @@ Buffer& Buffer::position( int newPositio
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Buffer& Buffer::limit( int newLimit ) throw( IllegalArgumentException ) {
+Buffer& Buffer::limit( int newLimit ) {
 
     if( newLimit < 0 || newLimit > this->capacity() ) {
         throw IllegalArgumentException(
@@ -94,7 +93,7 @@ Buffer& Buffer::mark() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-Buffer& Buffer::reset() throw ( InvalidMarkException ) {
+Buffer& Buffer::reset() {
 
     if( !this->_markSet ) {
         throw InvalidMarkException(

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/Buffer.h Fri Jul  2 19:04:44 2010
@@ -164,8 +164,7 @@ namespace nio{
          *
          * @throws IllegalArgumentException if preconditions on the new pos don't hold.
          */
-        virtual Buffer& position( int newPosition )
-            throw( lang::exceptions::IllegalArgumentException );
+        virtual Buffer& position( int newPosition );
 
         /**
          * @returns this buffers Limit
@@ -186,8 +185,7 @@ namespace nio{
          *
          * @throws IllegalArgumentException if preconditions on the new pos don't hold.
          */
-        virtual Buffer& limit( int newLimit )
-            throw( lang::exceptions::IllegalArgumentException );
+        virtual Buffer& limit( int newLimit );
 
         /**
          * Sets this buffer's mark at its position.
@@ -203,7 +201,7 @@ namespace nio{
          *
          * @throws InvalidMarkException - If the mark has not been set
          */
-        virtual Buffer& reset() throw( InvalidMarkException );
+        virtual Buffer& reset();
 
         /**
          * Clears this buffer. The position is set to zero, the limit is set to the

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -31,13 +31,11 @@ using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer::ByteBuffer( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+ByteBuffer::ByteBuffer( int capacity ) : Buffer( capacity ) {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer* ByteBuffer::allocate( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) {
+ByteBuffer* ByteBuffer::allocate( int capacity ) {
 
     try{
         return BufferFactory::createByteBuffer( capacity );
@@ -47,9 +45,7 @@ ByteBuffer* ByteBuffer::allocate( int ca
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer* ByteBuffer::wrap( unsigned char* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+ByteBuffer* ByteBuffer::wrap( unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -91,8 +87,7 @@ ByteBuffer* ByteBuffer::wrap( std::vecto
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer& ByteBuffer::get( std::vector<unsigned char> buffer )
-    throw ( BufferUnderflowException ) {
+ByteBuffer& ByteBuffer::get( std::vector<unsigned char> buffer ) {
 
     try{
 
@@ -108,8 +103,7 @@ ByteBuffer& ByteBuffer::get( std::vector
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer& ByteBuffer::get( unsigned char* buffer, int size, int offset, int length )
-    throw( BufferUnderflowException, NullPointerException, IndexOutOfBoundsException ) {
+ByteBuffer& ByteBuffer::get( unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -149,8 +143,7 @@ ByteBuffer& ByteBuffer::get( unsigned ch
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer& ByteBuffer::put( ByteBuffer& src )
-    throw( BufferOverflowException, ReadOnlyBufferException, IllegalArgumentException ) {
+ByteBuffer& ByteBuffer::put( ByteBuffer& src ) {
 
     try{
 
@@ -186,8 +179,7 @@ ByteBuffer& ByteBuffer::put( ByteBuffer&
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer& ByteBuffer::put( const unsigned char* buffer, int size, int offset, int length )
-    throw( BufferOverflowException, ReadOnlyBufferException, NullPointerException, IndexOutOfBoundsException ) {
+ByteBuffer& ByteBuffer::put( const unsigned char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -233,8 +225,7 @@ ByteBuffer& ByteBuffer::put( const unsig
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ByteBuffer& ByteBuffer::put( std::vector<unsigned char>& buffer )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+ByteBuffer& ByteBuffer::put( std::vector<unsigned char>& buffer ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ByteBuffer.h Fri Jul  2 19:04:44 2010
@@ -108,8 +108,7 @@ namespace nio{
          *
          * @throws IllegalArgumentException if capacity is negative.
          */
-        ByteBuffer( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        ByteBuffer( int capacity );
 
     public:
 
@@ -134,8 +133,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are fewer than length bytes remaining
          *         in this buffer
          */
-        ByteBuffer& get( std::vector<unsigned char> buffer )
-            throw ( BufferUnderflowException );
+        ByteBuffer& get( std::vector<unsigned char> buffer );
 
         /**
          * Relative bulk get method.
@@ -166,10 +164,7 @@ namespace nio{
          *         remaining in this buffer.
          * @throws NullPointerException if the passed buffer is null.
          */
-        ByteBuffer& get( unsigned char* buffer, int size, int offset, int length )
-            throw( BufferUnderflowException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        ByteBuffer& get( unsigned char* buffer, int size, int offset, int length );
 
         /**
          * This method transfers the bytes remaining in the given source buffer into
@@ -191,9 +186,7 @@ namespace nio{
          * @throws IllegalArgumentException if the source buffer is this buffer
          * @throws ReadOnlyBufferException if this buffer is read-only
          */
-        ByteBuffer& put( ByteBuffer& src )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        ByteBuffer& put( ByteBuffer& src );
 
         /**
          * This method transfers bytes into this buffer from the given source array.
@@ -222,10 +215,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        ByteBuffer& put( const unsigned char* buffer, int size, int offset, int length )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        ByteBuffer& put( const unsigned char* buffer, int size, int offset, int length );
 
         /**
          * This method transfers the entire content of the given source byte array into
@@ -239,8 +229,7 @@ namespace nio{
          * @throws BufferOverflowException if there is insufficient space in this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        ByteBuffer& put( std::vector<unsigned char>& buffer )
-            throw( BufferOverflowException, ReadOnlyBufferException );
+        ByteBuffer& put( std::vector<unsigned char>& buffer );
 
     public:   // Abstract Methods
 
@@ -267,9 +256,7 @@ namespace nio{
          * @throws UnsupportedOperationException if this buffer is not backed by an
          *         accessible array
          */
-        virtual unsigned char* array()
-            throw( ReadOnlyBufferException,
-                   decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+        virtual unsigned char* array() = 0;
 
         /**
          * Returns the offset within this buffer's backing array of the first element
@@ -289,9 +276,7 @@ namespace nio{
          * @throws UnsupportedOperationException if this buffer is not backed by an
          *         accessible array.
          */
-        virtual int arrayOffset() const
-            throw( ReadOnlyBufferException,
-                   decaf::lang::exceptions::UnsupportedOperationException ) = 0;
+        virtual int arrayOffset() const = 0;
 
         /**
          * Tells whether or not this buffer is backed by an accessible byte array.
@@ -436,7 +421,7 @@ namespace nio{
          *
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& compact() = 0;
 
         /**
          * Creates a new byte buffer that shares this buffer's content.
@@ -462,7 +447,7 @@ namespace nio{
          * @throws BufferUnderflowException if the buffer's current position is not
          *         smaller than its limit.
          */
-        virtual unsigned char get() const throw( BufferUnderflowException ) = 0;
+        virtual unsigned char get() const = 0;
 
         /**
          * Absolute get method. Reads the byte at the given index.
@@ -475,8 +460,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit, or index is negative.
          */
-        virtual unsigned char get( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual unsigned char get( int index ) const = 0;
 
         /**
          * Reads the next byte at this buffer's current position, and then increments
@@ -487,7 +471,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual char getChar() throw( BufferUnderflowException ) = 0;
+        virtual char getChar() = 0;
 
         /**
          * Reads one byte at the given index and returns it.
@@ -500,8 +484,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit, or index is negative.
          */
-        virtual char getChar( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual char getChar( int index ) const = 0;
 
         /**
          * Reads the next eight bytes at this buffer's current position, and then
@@ -512,7 +495,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual double getDouble() throw( BufferUnderflowException ) = 0;
+        virtual double getDouble() = 0;
 
         /**
          * Reads eight bytes at the given index and returns it
@@ -525,8 +508,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit, or index is negative.
          */
-        virtual double getDouble( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual double getDouble( int index ) const = 0;
 
         /**
          * Reads the next four bytes at this buffer's current position, and then
@@ -537,7 +519,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual float getFloat() throw( BufferUnderflowException ) = 0;
+        virtual float getFloat() = 0;
 
         /**
          * Reads four bytes at the given index and returns it.
@@ -550,8 +532,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if there are not enough bytes
          *         remaining to fill the requested Data Type, or index is negative.
          */
-        virtual float getFloat( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual float getFloat( int index ) const = 0;
 
         /**
          * Reads the next eight bytes at this buffer's current position, and then
@@ -562,7 +543,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual long long getLong() throw( BufferUnderflowException ) = 0;
+        virtual long long getLong() = 0;
 
         /**
          * Reads eight bytes at the given index and returns it.
@@ -575,8 +556,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if there are not enough bytes
          *         remaining to fill the requested Data Type, or index is negative.
          */
-        virtual long long getLong( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual long long getLong( int index ) const = 0;
 
         /**
          * Reads the next four bytes at this buffer's current position, and then
@@ -587,7 +567,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual int getInt() throw( BufferUnderflowException ) = 0;
+        virtual int getInt() = 0;
 
         /**
          * Reads four bytes at the given index and returns it.
@@ -600,8 +580,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if there are not enough bytes
          *         remaining to fill the requested Data Type, or index is negative.
          */
-        virtual int getInt( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual int getInt( int index ) const = 0;
 
         /**
          * Reads the next two bytes at this buffer's current position, and then
@@ -612,7 +591,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are no more bytes remaining in
          *         this buffer, meaning we have reached the set limit.
          */
-        virtual short getShort() throw( BufferUnderflowException ) = 0;
+        virtual short getShort() = 0;
 
         /**
          * Reads two bytes at the given index and returns it.
@@ -625,8 +604,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if there are not enough bytes
          *         remaining to fill the requested Data Type, or index is negative.
          */
-        virtual short getShort( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual short getShort( int index ) const = 0;
 
         /**
          * Writes the given byte into this buffer at the current position, and then
@@ -640,8 +618,7 @@ namespace nio{
          *         smaller than its limit.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& put( unsigned char value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& put( unsigned char value ) = 0;
 
         /**
          * Writes the given byte into this buffer at the given index.
@@ -655,9 +632,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& put( int index, unsigned char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& put( int index, unsigned char value ) = 0;
 
         /**
          * Writes one byte containing the given value, into this buffer at the
@@ -672,8 +647,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written
          * @throw ReadOnlyBufferException if this buffer is read-only
          */
-        virtual ByteBuffer& putChar( char value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putChar( char value ) = 0;
 
         /**
          * Writes one byte containing the given value, into this buffer at the
@@ -690,9 +664,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only
          */
-        virtual ByteBuffer& putChar( int index, char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putChar( int index, char value ) = 0;
 
         /**
          * Writes eight bytes containing the given value, into this buffer at the
@@ -707,8 +679,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written
          * @throw ReadOnlyBufferException if this buffer is read-only
          */
-        virtual ByteBuffer& putDouble( double value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putDouble( double value ) = 0;
 
         /**
          * Writes eight bytes containing the given value, into this buffer at the
@@ -725,9 +696,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putDouble( int index, double value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putDouble( int index, double value ) = 0;
 
         /**
          * Writes four bytes containing the given value, into this buffer at the
@@ -742,8 +711,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putFloat( float value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putFloat( float value ) = 0;
 
         /**
          * Writes four bytes containing the given value, into this buffer at the
@@ -760,9 +728,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putFloat( int index, float value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putFloat( int index, float value ) = 0;
 
         /**
          * Writes eight bytes containing the given value, into this buffer at the
@@ -777,8 +743,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putLong( long long value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putLong( long long value ) = 0;
 
         /**
          * Writes eight bytes containing the given value, into this buffer at the
@@ -795,9 +760,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putLong( int index, long long value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putLong( int index, long long value ) = 0;
 
         /**
          * Writes four bytes containing the given value, into this buffer at the
@@ -812,8 +775,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written
          * @throw ReadOnlyBufferException if this buffer is read-only
          */
-        virtual ByteBuffer& putInt( int value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putInt( int value ) = 0;
 
         /**
          * Writes four bytes containing the given value, into this buffer at the
@@ -830,9 +792,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only
          */
-        virtual ByteBuffer& putInt( int index, int value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putInt( int index, int value ) = 0;
 
         /**
          * Writes two bytes containing the given value, into this buffer at the
@@ -847,8 +807,7 @@ namespace nio{
          *        in this buffer than the size of the data to be written.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putShort( short value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putShort( short value ) = 0;
 
         /**
          * Writes two bytes containing the given value, into this buffer at the
@@ -865,9 +824,7 @@ namespace nio{
          *        minus the size of the type being written, or index is negative.
          * @throw ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual ByteBuffer& putShort( int index, short value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual ByteBuffer& putShort( int index, short value ) = 0;
 
         /**
          * Creates a new byte buffer whose content is a shared subsequence of this
@@ -919,8 +876,7 @@ namespace nio{
          *
          * @throws IllegalArgumentException if capacity is negative.
          */
-        static ByteBuffer* allocate( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        static ByteBuffer* allocate( int capacity );
 
         /**
          * Wraps the passed buffer with a new ByteBuffer.
@@ -946,9 +902,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        static ByteBuffer* wrap( unsigned char* array, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static ByteBuffer* wrap( unsigned char* array, int size, int offset, int length );
 
         /**
          * Wraps the passed STL Byte Vector in a ByteBuffer.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang::exceptions;
 using namespace decaf::internal::nio;
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer::CharBuffer( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+CharBuffer::CharBuffer( int capacity ) : Buffer( capacity ) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer* CharBuffer::allocate( int capacity )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+CharBuffer* CharBuffer::allocate( int capacity ) {
 
     try{
 
@@ -52,9 +50,7 @@ CharBuffer* CharBuffer::allocate( int ca
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer* CharBuffer::wrap( char* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+CharBuffer* CharBuffer::wrap( char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -102,8 +98,7 @@ std::string CharBuffer::toString() const
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::append( char value )
-    throw ( BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharBuffer::append( char value ) {
 
     try{
 
@@ -118,8 +113,7 @@ CharBuffer& CharBuffer::append( char val
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::append( const CharSequence* value )
-    throw ( BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharBuffer::append( const CharSequence* value ) {
 
     try{
 
@@ -136,9 +130,7 @@ CharBuffer& CharBuffer::append( const Ch
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::append( const CharSequence* value, int start, int end )
-    throw ( decaf::lang::exceptions::IndexOutOfBoundsException,
-            BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharBuffer::append( const CharSequence* value, int start, int end ) {
 
     try{
 
@@ -159,8 +151,7 @@ CharBuffer& CharBuffer::append( const Ch
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-char CharBuffer::charAt( int index ) const
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+char CharBuffer::charAt( int index ) const {
 
     try{
 
@@ -177,8 +168,7 @@ char CharBuffer::charAt( int index ) con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::get( std::vector<char> buffer )
-    throw ( BufferUnderflowException ) {
+CharBuffer& CharBuffer::get( std::vector<char> buffer ) {
 
     try{
 
@@ -193,10 +183,7 @@ CharBuffer& CharBuffer::get( std::vector
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::get( char* buffer, int size, int offset, int length )
-    throw( BufferUnderflowException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+CharBuffer& CharBuffer::get( char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -235,9 +222,7 @@ CharBuffer& CharBuffer::get( char* buffe
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::put( CharBuffer& src )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+CharBuffer& CharBuffer::put( CharBuffer& src ) {
 
     try{
 
@@ -273,10 +258,7 @@ CharBuffer& CharBuffer::put( CharBuffer&
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::put( const char* buffer, int size, int offset, int length )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+CharBuffer& CharBuffer::put( const char* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -323,8 +305,7 @@ CharBuffer& CharBuffer::put( const char*
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::put( std::vector<char>& buffer )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharBuffer::put( std::vector<char>& buffer ) {
 
     try{
 
@@ -341,9 +322,7 @@ CharBuffer& CharBuffer::put( std::vector
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::put( std::string& src, int start, int end )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+CharBuffer& CharBuffer::put( std::string& src, int start, int end ) {
 
     try{
 
@@ -373,8 +352,7 @@ CharBuffer& CharBuffer::put( std::string
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-CharBuffer& CharBuffer::put( const std::string& src )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+CharBuffer& CharBuffer::put( const std::string& src ) {
 
     try{
 
@@ -391,10 +369,7 @@ CharBuffer& CharBuffer::put( const std::
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-int CharBuffer::read( CharBuffer* target )
-    throw ( decaf::lang::exceptions::NullPointerException,
-            decaf::lang::exceptions::IllegalArgumentException,
-            ReadOnlyBufferException ) {
+int CharBuffer::read( CharBuffer* target ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/CharBuffer.h Fri Jul  2 19:04:44 2010
@@ -78,8 +78,7 @@ namespace nio{
          *
          * @throws IllegalArguementException if capacity is negative.
          */
-        CharBuffer( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        CharBuffer( int capacity );
 
     public:
 
@@ -101,8 +100,7 @@ namespace nio{
          * @throws BufferOverflowException if there is no more space
          * @throws ReadOnlyBufferException if this Buffer is read only.
          */
-        CharBuffer& append( char value )
-            throw ( BufferOverflowException, ReadOnlyBufferException );
+        CharBuffer& append( char value );
 
         /**
          * Appends the specified character sequence to this buffer.
@@ -116,8 +114,7 @@ namespace nio{
          * @throws BufferOverflowException if there is no more space
          * @throws ReadOnlyBufferException if this Buffer is read only.
          */
-        CharBuffer& append( const lang::CharSequence* value )
-            throw ( BufferOverflowException, ReadOnlyBufferException );
+        CharBuffer& append( const lang::CharSequence* value );
 
         /**
          * Appends a subsequence of the specified character sequence to this buffer
@@ -136,9 +133,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws IndexOutOfBoundsException if start > end, or > length of sequence.
          */
-        CharBuffer& append( const lang::CharSequence* value, int start, int end )
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException,
-                    BufferOverflowException, ReadOnlyBufferException );
+        CharBuffer& append( const lang::CharSequence* value, int start, int end );
 
         /**
          * Returns the character array that backs this buffer  (optional operation).
@@ -154,9 +149,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual char* array()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual char* array() = 0;
 
         /**
          * Returns the offset within this buffer's backing array of the first element of
@@ -170,9 +163,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual int arrayOffset()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual int arrayOffset() = 0;
 
         /**
          * Creates a new, read-only char buffer that shares this buffer's content.
@@ -203,8 +194,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the index + the current position exceeds the
          *         size of the buffer or the index is negative.
          */
-        char charAt( int index ) const
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        char charAt( int index ) const;
 
         /**
          * Compacts this buffer
@@ -224,7 +214,7 @@ namespace nio{
          *
          * @throws ReadOnlyBufferException - If this buffer is read-only
          */
-        virtual CharBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+        virtual CharBuffer& compact() = 0;
 
         /**
          * Creates a new char buffer that shares this buffer's content.
@@ -249,7 +239,7 @@ namespace nio{
          *
          * @throws BufferUnderflowException if there no more data to return
          */
-        virtual char get() throw ( BufferUnderflowException ) = 0;
+        virtual char get() = 0;
 
         /**
          * Absolute get method. Reads the char at the given index.
@@ -262,8 +252,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit or is negative.
          */
-        virtual char get( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual char get( int index ) const = 0;
 
         /**
          * Relative bulk get method.
@@ -279,8 +268,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are fewer than length chars
          *         remaining in this buffer.
          */
-        CharBuffer& get( std::vector<char> buffer )
-            throw ( BufferUnderflowException );
+        CharBuffer& get( std::vector<char> buffer );
 
         /**
          * Relative bulk get method.
@@ -311,10 +299,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        CharBuffer& get( char* buffer, int size, int offset, int length )
-            throw( BufferUnderflowException,
-                   decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        CharBuffer& get( char* buffer, int size, int offset, int length );
 
         /**
          * Tells whether or not this buffer is backed by an accessible char array.
@@ -355,9 +340,7 @@ namespace nio{
          * @throws IllegalArgumentException if the source buffer is this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        CharBuffer& put( CharBuffer& src )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        CharBuffer& put( CharBuffer& src );
 
         /**
          * This method transfers chars into this buffer from the given source array.
@@ -386,10 +369,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        CharBuffer& put( const char* buffer, int size, int offset, int length )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        CharBuffer& put( const char* buffer, int size, int offset, int length );
 
         /**
          * This method transfers the entire content of the given source char array into
@@ -403,8 +383,7 @@ namespace nio{
          * @throws BufferOverflowException if there is insufficient space in this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        CharBuffer& put( std::vector<char>& buffer )
-            throw( BufferOverflowException, ReadOnlyBufferException );
+        CharBuffer& put( std::vector<char>& buffer );
 
         /**
          * Writes the given char into this buffer at the current position, and then
@@ -419,8 +398,7 @@ namespace nio{
          *         smaller than its limit
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual CharBuffer& put( char value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual CharBuffer& put( char value ) = 0;
 
         /**
          * Writes the given char into this buffer at the given index.
@@ -436,9 +414,7 @@ namespace nio{
          *         minus the size of the type being written, or index is negative.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual CharBuffer& put( int index, char value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual CharBuffer& put( int index, char value ) = 0;
 
         /**
          * Relative bulk put method  (optional operation).
@@ -467,9 +443,7 @@ namespace nio{
          *         minus the size of the type being written.
          * @throws ReadOnlyBufferException if this buffer is read-only
          */
-        CharBuffer& put( std::string& src, int start, int end )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        CharBuffer& put( std::string& src, int start, int end );
 
         /**
          * Relative bulk put method  (optional operation).
@@ -486,8 +460,7 @@ namespace nio{
          * @throws BufferOverflowException if this buffer's current position is not.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        CharBuffer& put( const std::string& src )
-            throw( BufferOverflowException, ReadOnlyBufferException );
+        CharBuffer& put( const std::string& src );
 
         /**
          * Attempts to read characters into the specified character buffer. The buffer is
@@ -504,10 +477,7 @@ namespace nio{
          * @throws IllegalArgumentException if target is this CharBuffer.
          * @throws ReadOnlyBufferException if this buffer is in read-only mode.
          */
-        virtual int read( CharBuffer* target )
-            throw ( decaf::lang::exceptions::NullPointerException,
-                    decaf::lang::exceptions::IllegalArgumentException,
-                    ReadOnlyBufferException );
+        virtual int read( CharBuffer* target );
 
         /**
          * Creates a new character buffer that represents the specified subsequence of
@@ -531,8 +501,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if the preconditions on start and end fail.
          */
-        virtual lang::CharSequence* subSequence( int start, int end ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual lang::CharSequence* subSequence( int start, int end ) const = 0;
 
         /**
          * Creates a new CharBuffer whose content is a shared subsequence of this
@@ -587,8 +556,7 @@ namespace nio{
          *
          * @throws IndexOutOfBoundsException if capacity is negative.
          */
-        static CharBuffer* allocate( int capacity )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException );
+        static CharBuffer* allocate( int capacity );
 
         /**
          * Wraps the passed buffer with a new CharBuffer.
@@ -613,9 +581,7 @@ namespace nio{
          * @throws NullPointerException if the array pointer is Null.
          * @throws IndexOutOfBoundsException if capacity is negative.
          */
-        static CharBuffer* wrap( char* array, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static CharBuffer* wrap( char* array, int size, int offset, int length );
 
         /**
          * Wraps the passed STL char Vector in a CharBuffer.
@@ -656,9 +622,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions on start and end fail
          */
 // TODO
-//        static CharBuffer* wrap( lang::CharSequence* csq, int start, int end )
-//            throw( decaf::lang::exceptions::NullPointerException,
-//                   decaf::lang::exceptions::IndexOutOfBoundsException );
+//        static CharBuffer* wrap( lang::CharSequence* csq, int start, int end );
 
         /**
          * Wraps a full CharSequence into a buffer.
@@ -676,8 +640,7 @@ namespace nio{
          * @throws NullPointerException if csq is null.
          */
 // TODO
-//        static CharBuffer* wrap( lang::CharSequence* csq )
-//            throw ( decaf::lang::exceptions::NullPointerException );
+//        static CharBuffer* wrap( lang::CharSequence* csq );
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer::DoubleBuffer( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+DoubleBuffer::DoubleBuffer( int capacity ) : Buffer( capacity ) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer* DoubleBuffer::allocate( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) {
+DoubleBuffer* DoubleBuffer::allocate( int capacity ) {
 
     try{
         return BufferFactory::createDoubleBuffer( capacity );
@@ -46,9 +44,7 @@ DoubleBuffer* DoubleBuffer::allocate( in
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer* DoubleBuffer::wrap( double* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::NullPointerException,
-           decaf::lang::exceptions::IndexOutOfBoundsException ) {
+DoubleBuffer* DoubleBuffer::wrap( double* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -98,8 +94,7 @@ std::string DoubleBuffer::toString() con
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleBuffer::get( std::vector<double> buffer )
-    throw ( BufferUnderflowException ) {
+DoubleBuffer& DoubleBuffer::get( std::vector<double> buffer ) {
 
     try{
 
@@ -114,10 +109,7 @@ DoubleBuffer& DoubleBuffer::get( std::ve
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleBuffer::get( double* buffer, int size, int offset, int length )
-    throw( BufferUnderflowException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+DoubleBuffer& DoubleBuffer::get( double* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -156,9 +148,7 @@ DoubleBuffer& DoubleBuffer::get( double*
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleBuffer::put( DoubleBuffer& src )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IllegalArgumentException ) {
+DoubleBuffer& DoubleBuffer::put( DoubleBuffer& src ) {
 
     try{
 
@@ -194,10 +184,7 @@ DoubleBuffer& DoubleBuffer::put( DoubleB
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleBuffer::put( const double* buffer, int size, int offset, int length )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+DoubleBuffer& DoubleBuffer::put( const double* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -244,8 +231,7 @@ DoubleBuffer& DoubleBuffer::put( const d
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-DoubleBuffer& DoubleBuffer::put( std::vector<double>& buffer )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+DoubleBuffer& DoubleBuffer::put( std::vector<double>& buffer ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/DoubleBuffer.h Fri Jul  2 19:04:44 2010
@@ -63,8 +63,7 @@ namespace nio{
          *
          * @throws IllegalArguementException if capacity is negative.
          */
-        DoubleBuffer( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        DoubleBuffer( int capacity );
 
     public:
 
@@ -89,9 +88,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual double* array()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual double* array() = 0;
 
         /**
          * Returns the offset within this buffer's backing array of the first element of
@@ -105,9 +102,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual int arrayOffset()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual int arrayOffset() = 0;
 
         /**
          * Creates a new, read-only double buffer that shares this buffer's content.
@@ -146,7 +141,7 @@ namespace nio{
          *
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual DoubleBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+        virtual DoubleBuffer& compact() = 0;
 
         /**
          * Creates a new double buffer that shares this buffer's content.
@@ -171,7 +166,7 @@ namespace nio{
          *
          * @throws BufferUnderflowException if there no more data to return.
          */
-        virtual double get() throw ( BufferUnderflowException ) = 0;
+        virtual double get() = 0;
 
         /**
          * Absolute get method. Reads the value at the given index.
@@ -184,8 +179,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit
          */
-        virtual double get( int index ) const
-            throw ( lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual double get( int index ) const = 0;
 
         /**
          * Relative bulk get method.
@@ -201,8 +195,7 @@ namespace nio{
          * @throws BufferUnderflowException iIf there are fewer than length doubles
          *         remaining in this buffer
          */
-        DoubleBuffer& get( std::vector<double> buffer )
-            throw ( BufferUnderflowException );
+        DoubleBuffer& get( std::vector<double> buffer );
 
         /**
          * Relative bulk get method.
@@ -233,10 +226,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        DoubleBuffer& get( double* buffer, int size, int offset, int length )
-            throw( BufferUnderflowException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        DoubleBuffer& get( double* buffer, int size, int offset, int length );
 
         /**
          * Tells whether or not this buffer is backed by an accessible double array.
@@ -269,9 +259,7 @@ namespace nio{
          * @throws IllegalArgumentException if the source buffer is this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        DoubleBuffer& put( DoubleBuffer& src )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        DoubleBuffer& put( DoubleBuffer& src );
 
         /**
          * This method transfers doubles into this buffer from the given source array.
@@ -300,10 +288,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        DoubleBuffer& put( const double* buffer, int size, int offset, int length )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        DoubleBuffer& put( const double* buffer, int size, int offset, int length );
 
         /**
          * This method transfers the entire content of the given source doubles array into
@@ -317,8 +302,7 @@ namespace nio{
          * @throws BufferOverflowException if there is insufficient space in this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        DoubleBuffer& put( std::vector<double>& buffer )
-            throw( BufferOverflowException, ReadOnlyBufferException );
+        DoubleBuffer& put( std::vector<double>& buffer );
 
         /**
          * Writes the given doubles into this buffer at the current position, and then
@@ -333,8 +317,7 @@ namespace nio{
          *         smaller than its limit.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual DoubleBuffer& put( double value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual DoubleBuffer& put( double value ) = 0;
 
         /**
          * Writes the given doubles into this buffer at the given index.
@@ -350,9 +333,7 @@ namespace nio{
          *         minus the size of the type being written, or the index is negative.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual DoubleBuffer& put( int index, double value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual DoubleBuffer& put( int index, double value ) = 0;
 
         /**
          * Creates a new DoubleBuffer whose content is a shared subsequence of this
@@ -407,8 +388,7 @@ namespace nio{
          *
          * @throws IllegalArgumentException is the capacity value is negative.
          */
-        static DoubleBuffer* allocate( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        static DoubleBuffer* allocate( int capacity );
 
         /**
          * Wraps the passed buffer with a new DoubleBuffer.
@@ -434,9 +414,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        static DoubleBuffer* wrap( double* array, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static DoubleBuffer* wrap( double* array, int size, int offset, int length );
 
         /**
          * Wraps the passed STL double Vector in a DoubleBuffer.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang;
 using namespace decaf::lang::exceptions;
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer::FloatBuffer( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) :  Buffer( capacity ) {
+FloatBuffer::FloatBuffer( int capacity ) : Buffer( capacity ) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer* FloatBuffer::allocate( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) {
+FloatBuffer* FloatBuffer::allocate( int capacity ) {
 
     try{
         return BufferFactory::createFloatBuffer( capacity );
@@ -46,9 +44,7 @@ FloatBuffer* FloatBuffer::allocate( int 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer* FloatBuffer::wrap( float* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+FloatBuffer* FloatBuffer::wrap( float* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -97,8 +93,7 @@ std::string FloatBuffer::toString() cons
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer& FloatBuffer::get( std::vector<float> buffer )
-    throw ( BufferUnderflowException ) {
+FloatBuffer& FloatBuffer::get( std::vector<float> buffer ) {
 
     try{
 
@@ -113,10 +108,7 @@ FloatBuffer& FloatBuffer::get( std::vect
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer& FloatBuffer::get( float* buffer, int size, int offset, int length )
-    throw( BufferUnderflowException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+FloatBuffer& FloatBuffer::get( float* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -155,9 +147,7 @@ FloatBuffer& FloatBuffer::get( float* bu
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer& FloatBuffer::put( FloatBuffer& src )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           lang::exceptions::IllegalArgumentException ) {
+FloatBuffer& FloatBuffer::put( FloatBuffer& src ) {
 
     try{
 
@@ -193,10 +183,7 @@ FloatBuffer& FloatBuffer::put( FloatBuff
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer& FloatBuffer::put( const float* buffer, int size, int offset, int length )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+FloatBuffer& FloatBuffer::put( const float* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -243,8 +230,7 @@ FloatBuffer& FloatBuffer::put( const flo
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-FloatBuffer& FloatBuffer::put( std::vector<float>& buffer )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+FloatBuffer& FloatBuffer::put( std::vector<float>& buffer ) {
 
     try{
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.h?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/FloatBuffer.h Fri Jul  2 19:04:44 2010
@@ -61,8 +61,7 @@ namespace nio{
         *
          * @throws IllegalArguementException if capacity is negative.
         */
-        FloatBuffer( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        FloatBuffer( int capacity );
 
     public:
 
@@ -87,9 +86,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual float* array()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual float* array() = 0;
 
         /**
          * Returns the offset within this buffer's backing array of the first element of
@@ -103,9 +100,7 @@ namespace nio{
          * @throws ReadOnlyBufferException if this Buffer is read only.
          * @throws UnsupportedOperationException if the underlying store has no array.
          */
-        virtual int arrayOffset()
-            throw( decaf::lang::exceptions::UnsupportedOperationException,
-                   ReadOnlyBufferException ) = 0;
+        virtual int arrayOffset() = 0;
 
         /**
          * Creates a new, read-only float buffer that shares this buffer's content.
@@ -144,7 +139,7 @@ namespace nio{
          *
          * @throws ReadOnlyBufferException if this buffer is read-only
          */
-        virtual FloatBuffer& compact() throw( ReadOnlyBufferException ) = 0;
+        virtual FloatBuffer& compact() = 0;
 
         /**
          * Creates a new float buffer that shares this buffer's content.
@@ -169,7 +164,7 @@ namespace nio{
          *
          * @throws BufferUnderflowException if there no more data to return.
          */
-        virtual float get() throw ( BufferUnderflowException ) = 0;
+        virtual float get() = 0;
 
         /**
          * Absolute get method. Reads the value at the given index.
@@ -182,8 +177,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if index is not smaller than the
          *         buffer's limit
          */
-        virtual float get( int index ) const
-            throw ( decaf::lang::exceptions::IndexOutOfBoundsException ) = 0;
+        virtual float get( int index ) const = 0;
 
         /**
          * Relative bulk get method.
@@ -199,8 +193,7 @@ namespace nio{
          * @throws BufferUnderflowException if there are fewer than length floats
          *         remaining in this buffer
          */
-        FloatBuffer& get( std::vector<float> buffer )
-            throw ( BufferUnderflowException );
+        FloatBuffer& get( std::vector<float> buffer );
 
         /**
          * Relative bulk get method.
@@ -231,10 +224,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        FloatBuffer& get( float* buffer, int size, int offset, int length )
-            throw( BufferUnderflowException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        FloatBuffer& get( float* buffer, int size, int offset, int length );
 
         /**
          * Tells whether or not this buffer is backed by an accessible float array.
@@ -267,9 +257,7 @@ namespace nio{
          * @throws IllegalArgumentException if the source buffer is this buffer.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        FloatBuffer& put( FloatBuffer& src )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IllegalArgumentException );
+        FloatBuffer& put( FloatBuffer& src );
 
         /**
          * This method transfers floats into this buffer from the given source array.
@@ -298,10 +286,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        FloatBuffer& put( const float* buffer, int size, int offset, int length )
-            throw( BufferOverflowException, ReadOnlyBufferException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException,
-                   decaf::lang::exceptions::NullPointerException );
+        FloatBuffer& put( const float* buffer, int size, int offset, int length );
 
         /**
          * This method transfers the entire content of the given source floats array into
@@ -315,8 +300,7 @@ namespace nio{
          * @throws BufferOverflowException if there is insufficient space in this buffer
          * @throws ReadOnlyBufferException if this buffer is read-only
          */
-        FloatBuffer& put( std::vector<float>& buffer )
-            throw( BufferOverflowException, ReadOnlyBufferException );
+        FloatBuffer& put( std::vector<float>& buffer );
 
         /**
          * Writes the given floats into this buffer at the current position, and then
@@ -331,8 +315,7 @@ namespace nio{
          *         smaller than its limit
          * @throws ReadOnlyBufferException if this buffer is read-only
          */
-        virtual FloatBuffer& put( float value )
-            throw( BufferOverflowException, ReadOnlyBufferException ) = 0;
+        virtual FloatBuffer& put( float value ) = 0;
 
         /**
          * Writes the given floats into this buffer at the given index.
@@ -348,9 +331,7 @@ namespace nio{
          *         minus the size of the type being written, or index is negative.
          * @throws ReadOnlyBufferException if this buffer is read-only.
          */
-        virtual FloatBuffer& put( int index, float value )
-            throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-                   ReadOnlyBufferException ) = 0;
+        virtual FloatBuffer& put( int index, float value ) = 0;
 
         /**
          * Creates a new FloatBuffer whose content is a shared subsequence of this
@@ -403,8 +384,7 @@ namespace nio{
          *
          * @returns the FloatBuffer that was allocated, caller owns.
          */
-        static FloatBuffer* allocate( int capacity )
-            throw( decaf::lang::exceptions::IllegalArgumentException );
+        static FloatBuffer* allocate( int capacity );
 
         /**
          * Wraps the passed buffer with a new FloatBuffer.
@@ -430,9 +410,7 @@ namespace nio{
          * @throws IndexOutOfBoundsException if the preconditions of size, offset, or length
          *         are not met.
          */
-        static FloatBuffer* wrap( float* array, int size, int offset, int length )
-            throw( decaf::lang::exceptions::NullPointerException,
-                   decaf::lang::exceptions::IndexOutOfBoundsException );
+        static FloatBuffer* wrap( float* array, int size, int offset, int length );
 
         /**
          * Wraps the passed STL float Vector in a FloatBuffer.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.cpp?rev=960088&r1=960087&r2=960088&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/IntBuffer.cpp Fri Jul  2 19:04:44 2010
@@ -29,14 +29,12 @@ using namespace decaf::lang::exceptions;
 using namespace decaf::internal::nio;
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer::IntBuffer( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) : Buffer( capacity ) {
+IntBuffer::IntBuffer( int capacity ) : Buffer( capacity ) {
 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer* IntBuffer::allocate( int capacity )
-    throw( decaf::lang::exceptions::IllegalArgumentException ) {
+IntBuffer* IntBuffer::allocate( int capacity ) {
 
     try{
         return BufferFactory::createIntBuffer( capacity );
@@ -46,9 +44,7 @@ IntBuffer* IntBuffer::allocate( int capa
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer* IntBuffer::wrap( int* buffer, int size, int offset, int length )
-    throw( decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+IntBuffer* IntBuffer::wrap( int* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -97,8 +93,7 @@ std::string IntBuffer::toString() const 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer& IntBuffer::get( std::vector<int> buffer )
-    throw ( BufferUnderflowException ) {
+IntBuffer& IntBuffer::get( std::vector<int> buffer ) {
 
     try{
 
@@ -113,10 +108,7 @@ IntBuffer& IntBuffer::get( std::vector<i
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer& IntBuffer::get( int* buffer, int size, int offset, int length )
-    throw( BufferUnderflowException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+IntBuffer& IntBuffer::get( int* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -155,9 +147,7 @@ IntBuffer& IntBuffer::get( int* buffer, 
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer& IntBuffer::put( IntBuffer& src )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           lang::exceptions::IllegalArgumentException ) {
+IntBuffer& IntBuffer::put( IntBuffer& src ) {
 
     try{
 
@@ -193,10 +183,7 @@ IntBuffer& IntBuffer::put( IntBuffer& sr
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer& IntBuffer::put( const int* buffer, int size, int offset, int length )
-    throw( BufferOverflowException, ReadOnlyBufferException,
-           decaf::lang::exceptions::IndexOutOfBoundsException,
-           decaf::lang::exceptions::NullPointerException ) {
+IntBuffer& IntBuffer::put( const int* buffer, int size, int offset, int length ) {
 
     try{
 
@@ -243,8 +230,7 @@ IntBuffer& IntBuffer::put( const int* bu
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-IntBuffer& IntBuffer::put( std::vector<int>& buffer )
-    throw( BufferOverflowException, ReadOnlyBufferException ) {
+IntBuffer& IntBuffer::put( std::vector<int>& buffer ) {
 
     try{