activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Marbach (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Commented] (AMQNET-404) ActiveMQByteMessage Content accessing multiple times wipes the property
Date Fri, 26 Apr 2013 12:28:17 GMT

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

Daniel Marbach commented on AMQNET-404:
---------------------------------------

No I didn't call reset. So I close this issue if this is the defined behavior
                
> ActiveMQByteMessage Content accessing multiple times wipes the property
> -----------------------------------------------------------------------
>
>                 Key: AMQNET-404
>                 URL: https://issues.apache.org/jira/browse/AMQNET-404
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ
>    Affects Versions: 1.5.6
>            Reporter: Daniel Marbach
>            Assignee: Jim Gomes
>            Priority: Minor
>
> If you have an IBytesMessage and for example do the following:
> byte[] content = null;
> if (message.Content!= null)
> {
>    content  = message.Content;
> }
> Accessing content the first time will return the correct data.
> Accessing a second time the content property will return an empty byte array which has
the length of the data but all bytes are zero.
> It is OK that the content property is evaluated lazily but it should not return different
data when accessing multiple times. So accessing the property the first time should read the
buffer and assign it to a field and then always return that byte buffer.

--
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

Mime
View raw message