-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
False
-
False
-
According to AMQP 1.0, the type for message priority is ubyte and the type for group sequence is uint. In Proton J2, they are mapped to byte and int, respectively. This does not look right to me, because the Proton J2 types do not fully cover the range of the AMQP types.
Am I expected to treat the values as unsigned? I am aware of some support for Unsigned Int arithmetic in Java 8+. It would make more sense to me to use signed int and long types for these values in the API.
Looking at the group-sequence implementation, I feel that my interpretation in the previous paragraph is correct. I do not see similar provisions for dealing with unsigned byte in the priority case, however.