Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 31823 invoked from network); 4 May 2009 15:17:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 15:17:05 -0000 Received: (qmail 14360 invoked by uid 500); 4 May 2009 15:17:05 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 14298 invoked by uid 500); 4 May 2009 15:17:05 -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 14288 invoked by uid 99); 4 May 2009 15:17:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 15:17:04 +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; Mon, 04 May 2009 15:17:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C1E5234C003 for ; Mon, 4 May 2009 08:16:42 -0700 (PDT) Message-ID: <1720664832.1241450202047.JavaMail.jira@brutus> Date: Mon, 4 May 2009 08:16:42 -0700 (PDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQCPP-241) Support the standard JMS property type conversion rules. In-Reply-To: <1694825365.1241117859014.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-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQCPP-241. --------------------------------- Resolution: Fixed Changes implemented in trunk. > Support the standard JMS property type conversion rules. > -------------------------------------------------------- > > Key: AMQCPP-241 > URL: https://issues.apache.org/activemq/browse/AMQCPP-241 > Project: ActiveMQ C++ Client > Issue Type: New Feature > Components: CMS Impl, Openwire, Stomp > Affects Versions: 3.0 > Reporter: Timothy Bish > Assignee: Timothy Bish > Fix For: 3.0 > > > Currently the CMS Message interface restricts the user from calling a get method on a property that is not of the type that matches the call, for instance call getIntProperty when the value contained internally is a long would throw an exception. To make this interface more flexible and to allow for stomp support to work properly in the new architecture it is necessary to support conversion of all the elements in the properties to a string type. Since this happens automatically as a result of implementing the standard JMS conversion table it makes sense to do this in a way that's allows the CMS interface implementation to benefit from it as well. > The implementation follows the same rules as defined in the JMS API docs for the Message Interface. > {quote} > Message properties support the following conversion table. The marked cases must be supported. The unmarked cases must throw a JMSException. The String-to-primitive conversions may throw a runtime exception if the primitive's valueOf method does not accept the String as a valid representation of the primitive. > A value written as the row type can be read as the column type. > {noformat} > | | boolean byte short int long float double String > |---------------------------------------------------------- > |boolean | X X > |byte | X X X X X > |short | X X X X > |int | X X X > |long | X X > |float | X X X > |double | X X > |String | X X X X X X X X > |---------------------------------------------------------- > > {noformat} > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.