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

add type details to the ApplicationProperties map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • proton-j-0.24.0
    • proton-j
    • 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

            robbie Robbie Gemmell
            robbie Robbie Gemmell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: