activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Henne (JIRA) <j...@apache.org>
Subject [jira] Created: (AMQ-1364) ActiveMQConnection throws Exception when closing an already closed exception.
Date Thu, 16 Aug 2007 11:38:23 GMT
ActiveMQConnection throws Exception when closing an already closed exception.
-----------------------------------------------------------------------------

                 Key: AMQ-1364
                 URL: https://issues.apache.org/activemq/browse/AMQ-1364
             Project: ActiveMQ
          Issue Type: Bug
          Components: Connector
    Affects Versions: 4.1.1
            Reporter: Jörg Henne
            Priority: Minor


The {{ActiveMQConnection.close()}} explicitely states
bq. Closing a closed connection must NOT throw an exception.

But the first call in the close() implementation is to checkClosed(), which throws an exception,
if the connection is already closed:

{code:language=java}
    /**
     * simply throws an exception if the Connection is already closed
     * 
     * @throws JMSException
     */
    protected synchronized void checkClosed() throws JMSException {
        if (closed.get()) {
            throw new ConnectionClosedException();
        }
    }
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message