[ 
https://issues.apache.org/jira/browse/AMQNET-625?focusedWorklogId=938661&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-938661
 ]

ASF GitHub Bot logged work on AMQNET-625:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Oct/24 11:53
            Start Date: 17/Oct/24 11:53
    Worklog Time Spent: 10m 
      Work Description: alaendle commented on PR #48:
URL: https://github.com/apache/activemq-nms-amqp/pull/48#issuecomment-2419319421

   I "rediscovered" this issue (also can be found here: 
https://issues.apache.org/jira/browse/AMQNET-625), can anything be done to get 
the PR incorporated? The current behaviour is really annoying if you play 
around in test code with `.Content.Length` and afterwards take a look at the 
`.Content` and only see a lot of  `null`s 🤦‍♂️. For sure it is bad style to 
re-access/copy the underlying byte array, but from an equational reasoning 
standpoint it is hard to explain why `var x = msg.Content; var l = 
msg.Content.Length;` leads to a different result than swapping the statements 
`var l = msg.Content.Length; var x = msg.Content;` 😄 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 938661)
    Time Spent: 1h 40m  (was: 1.5h)

> byte[] Content property of IBytesMessage is accessible only once
> ----------------------------------------------------------------
>
>                 Key: AMQNET-625
>                 URL: https://issues.apache.org/jira/browse/AMQNET-625
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: AMQP
>            Reporter: Kamil Nowak
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> byte[] Content property of IBytesMessage is accessible only once. Further 
> readings yield byte array with all zeroes assigned.
> *Steps to reproduce:*
> Put a breakpoint in a method which handles the upcoming messaging in the 
> consumer. This results in a reading operation of the byte[] Content of a 
> message of type IBytesMessage. Therefore, further reading operations yield 
> the array with all elements having the '0' assigned.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to