This project is read-only.


GetStringObject() for array of objects


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

Closed Sep 1, 2015 at 2:16 AM by xinchen


ppatierno wrote May 28, 2014 at 2:55 PM

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


in the debug string.


ppatierno wrote May 30, 2014 at 12:16 PM

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

Thanks !