Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 64500 invoked from network); 28 Jan 2010 14:01:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2010 14:01:56 -0000 Received: (qmail 82482 invoked by uid 500); 28 Jan 2010 14:01:56 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 82417 invoked by uid 500); 28 Jan 2010 14:01:55 -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 82407 invoked by uid 99); 28 Jan 2010 14:01:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2010 14:01:55 +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; Thu, 28 Jan 2010 14:01:53 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC008234C045 for ; Thu, 28 Jan 2010 06:01:32 -0800 (PST) Message-ID: <1402312490.4481264687292758.JavaMail.jira@brutus.apache.org> Date: Thu, 28 Jan 2010 14:01:32 +0000 (UTC) From: "Magnus Persson (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-2585) ActiveMQTextMessage.getSize() does not consider size of properties 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 ActiveMQTextMessage.getSize() does not consider size of properties ------------------------------------------------------------------ Key: AMQ-2585 URL: https://issues.apache.org/activemq/browse/AMQ-2585 Project: ActiveMQ Issue Type: Bug Reporter: Magnus Persson Priority: Minor Checking the size of a text message only considers the body of a message, not the properties. I think this relates to a typo in the method: {noformat} public int getSize() { if (size == 0 && content == null && text != null) { size = getMinimumMessageSize(); if (marshalledProperties != null) { size += marshalledProperties.getLength(); } size = text.length() * 2; } return super.getSize(); } {noformat} This should perhaps be size += text.length() * 2? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.