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

add type details to the ApplicationProperties map

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: proton-j-0.24.0
    • Component/s: proton-j
    • Labels:
      None

      Description

      The ApplicationProperties object takes/returns a map of the keys+values. The keys are only allowed to be strings by the protocol spec, however the signatures are currently using a raw Map type. We should use Map<String,Object> to reflect the actual scenario and typical existing usage (with casting).

      This change will be binary compatible due to generic type erasure at compilation, but can introduce some trivial source incompatibility depending on particular casting etc done by using code. The improvement seems worth such trivial changes where needed during upgrade, and adapting source to work with old and new versions is similarly simple enough if required.

        Attachments

          Activity

            People

            • Assignee:
              gemmellr Robbie Gemmell
              Reporter:
              gemmellr Robbie Gemmell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: