Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.8
-
None
Description
Since PROTON-616, proton-j has attempted to enforce the fact that the key's of a message annotations map must be of the Symbol type (or actually ulong, but those are reserved so we don't need to worry about that) [1]
Unfortunately, from the Ruby client, the mapping of a native map into proton data always sets the key's as strings rather than symbols.
In proton-j, you'll currently hit a `java.lang.ClassCastException: java.lang.String incompatible with org.apache.qpid.proton.amqp.Symbol` if you try to look at keys of the MessageAnnotations object of a message sent from the ruby send.rb example (which sets message annotations for the keys 'version' and 'pill').
–
[1] http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-annotations