Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 99049 invoked from network); 25 Sep 2009 18:59:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 18:59:14 -0000 Received: (qmail 59300 invoked by uid 500); 25 Sep 2009 18:59:14 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 59244 invoked by uid 500); 25 Sep 2009 18:59:14 -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 59234 invoked by uid 99); 25 Sep 2009 18:59:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 18:59:14 +0000 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; Fri, 25 Sep 2009 18:59:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 330C9234C4B6 for ; Fri, 25 Sep 2009 11:58:52 -0700 (PDT) Message-ID: <713635470.1253905132191.JavaMail.jira@brutus> Date: Fri, 25 Sep 2009 11:58:52 -0700 (PDT) From: "Eric van Gyzen (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQCPP-262) exception message in checkWriteOnlyBody is wrong In-Reply-To: <845050978.1253904891957.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQCPP-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric van Gyzen updated AMQCPP-262: ---------------------------------- Attachment: checkWriteOnlyBody.diff > exception message in checkWriteOnlyBody is wrong > ------------------------------------------------ > > Key: AMQCPP-262 > URL: https://issues.apache.org/activemq/browse/AMQCPP-262 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: CMS Impl > Reporter: Eric van Gyzen > Assignee: Timothy Bish > Priority: Trivial > Attachments: checkWriteOnlyBody.diff > > > In the checkWriteOnlyBody method of the ActiveMQBytesMessage and ActiveMQStreamMessage classes, the message in the exception claims the opposite of reality. > Index: activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp > =================================================================== > --- activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp (revision 817354) > +++ activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp (working copy) > @@ -70,8 +70,8 @@ > if( !this->isReadOnlyBody() ){ > throw exceptions::ActiveMQException( > __FILE__, __LINE__, > - "message is in read-only mode and " > - "cannot be written to" ).convertToCMSException(); > + "message is in write-only mode and " > + "cannot be read from" ).convertToCMSException(); > } > } > Index: activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp > =================================================================== > --- activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp (revision 817354) > +++ activemq-cpp/src/main/activemq/commands/ActiveMQStreamMessage.cpp (working copy) > @@ -90,8 +90,8 @@ > if( !this->isReadOnlyBody() ){ > throw exceptions::ActiveMQException( > __FILE__, __LINE__, > - "message is in read-only mode and " > - "cannot be written to" ).convertToCMSException(); > + "message is in write-only mode and " > + "cannot be read from" ).convertToCMSException(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.