You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Elliotte Harold <er...@gmail.com> on 2007/06/13 16:48:24 UTC
MapMessage.getInt
Consider simple reception code like this:
MapMessage message = (MapMessage) consumer.receive(1000);
int x = message.getInt("foo"));
I notice that x is now set to zero even though there was no "foo" value in
the map. I would have expected an exception.
The JavaDoc is unclear on this point. Is this expected behavior? Can someone
explain to me why it behaves like this? What if zero is a legal value for
the map?
--
Elliotte Rusty Harold
erharold@gmail.com