1

Closed

GetStringObject() for array of objects

description

Hi,
I noticed that the GetDebugString() method in the DescribedCompund class can't return a valid string when fieldValues contains array of objects and not simple objects (values relateds to fieldNames array).
The problem is in the GetStringObject() that it calls because the cast :

value as byte[]

returns null so the corresponding returned value is System.Object[].

The example is the debus string from SaslMechanisms class that has the array with two values "PLAIN" and "EXTERNAL" (in my case with Service Bus) in the fieldValues[0].
In this case the debug string is the following :

RECV sasl-mechanisms(sasl-server-mechanisms:System.Object[])

It's not a great bug, but it could be useful to fix it :-)

Paolo.
Closed Sep 1, 2015 at 1:16 AM by xinchen

comments

ppatierno wrote May 28, 2014 at 1:55 PM

Another example is the "properties" field in Attach message ...
It is showed as :

properties:Amqp.Types.Map

in the debug string.

Paolo.

ppatierno wrote May 30, 2014 at 11:16 AM

Sorry ... "properties" in the Open message ... however now it works fine !

Thanks !