[rabbitmq-discuss] Java RabbitMQ API bug in response.getHeaders()?

Mario Leyton mleyton at niclabs.cl
Thu Oct 27 15:41:01 BST 2011


Hello,

We are using rabbitmq java client and I believe the following is a bug:

GetResponse response = ...;
AMQP.BasicProperties props = response.getProps();
Map<String, Object> headers = props.getHeaders();

If no headers are set, then headers variable is null when it should be
an empty Map.

We are using the following rabbitmq libraries and versions:

'com.rabbitmq:amqp-client:jar:2.3.1',
'org.apache.commons:commons-io:jar:1.3.2',
'commons-pool:commons-pool:jar:1.5.6'

Mario Leyton
--
NIC Chile Research Labs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20111027/f955554d/attachment.htm>


More information about the rabbitmq-discuss mailing list