[ 
https://issues.apache.org/jira/browse/AMQCPP-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444983#comment-13444983
 ] 

Timothy Bish commented on AMQCPP-424:
-------------------------------------

The reinterpret cast in the test that sets the read only property is a bit 
frightening.  This should really be a dynamic cast.  Also there are nearly 2000 
unit tests in the unit test portion of the code you can use to create a simpler 
test case.  The src/test/activemq/commands folder contains tests for message 
objects.
                
> Cannot clone() and then update properties of the newly cloned message
> ---------------------------------------------------------------------
>
>                 Key: AMQCPP-424
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-424
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.4.3
>         Environment: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
> 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 
> GNU/Linux
>            Reporter: Martin Lichtin
>            Assignee: Timothy Bish
>         Attachments: amqcpp-424.tar
>
>
> Consuming a message, then cloning it and subsequently attempting to make the
> properties of the new message writable (using setReadOnlyProperties(false)) 
> does not seem to work.
> Calling cms::Message::setStringProperty() will result in a 
> 'cms::MessageNotWriteableException' being thrown.
> Will try to provide test code to demonstrate.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to