Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 31410 invoked from network); 8 Apr 2008 16:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Apr 2008 16:50:19 -0000 Received: (qmail 71608 invoked by uid 500); 8 Apr 2008 16:50:19 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 71584 invoked by uid 500); 8 Apr 2008 16:50:19 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 71575 invoked by uid 99); 8 Apr 2008 16:50:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 09:50:19 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2008 16:49:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C1B65234C0C3 for ; Tue, 8 Apr 2008 09:47:32 -0700 (PDT) Message-ID: <481438763.1207673252792.JavaMail.jira@brutus> Date: Tue, 8 Apr 2008 09:47:32 -0700 (PDT) From: "Jim Gomes (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQNET-80) Close()/Dispose() Methods are not properly protected In-Reply-To: <189683256.1204247237774.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQNET-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jim Gomes resolved AMQNET-80. ----------------------------- Resolution: Fixed > Close()/Dispose() Methods are not properly protected > ---------------------------------------------------- > > Key: AMQNET-80 > URL: https://issues.apache.org/activemq/browse/AMQNET-80 > Project: ActiveMQ .Net > Issue Type: Bug > Components: ActiveMQ Client > Reporter: Jim Gomes > Assignee: Jim Gomes > Fix For: 1.0 > > Attachments: ProtectCloseMethod.patch > > Original Estimate: 15 minutes > Remaining Estimate: 15 minutes > > The Close() methods in Session, MessageConsumer, and MessageProducer are not properly protected from being called more than once. They can be called more than once if the owner of these objects calls the Close() method explicitly and then when they are finalized through the IDispose interface. The Close() methods in these objects should be protected in the same way the Close() method is protected in the Connection object. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.