Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2084

Cannot encode annotations types with nested Maps that differ from the annotation key type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: proton-j-0.33.1
    • Fix Version/s: proton-j-0.33.2
    • Component/s: proton-j
    • Labels:
      None

      Description

      The MapType encoder has a fixed key type setting used to enforce the types of keys for things like MessageAnnoations, DeliveryAnnotations that define Symbol type keys or ApplicationProperties that use String keys.  The current code uses that fixed type in error when encoding nested Maps within which causes the encode to fail if the nested map has a differing key type.  The MapType encoder needs to ignore the fixed key type setting when encoding values of the map entries. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tabish Timothy A. Bish
                Reporter:
                tabish Timothy A. Bish
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: