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

Change Message#decode to signal inability to decode entire buffer via exception rather than return value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • proton-j-future
    • proton-j
    • None

    Description

      Change Message#decode signature to throw an exception in the case where the decoder fails to decode all the bytes in the input buffer, rather than returning the number of bytes actually decoded.

      This will make the Java implementation more closely follow the Proton-C.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: