Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4904

[Java] AMQShortString.equals should not return true if it is not being compared to another AMQShortString

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Java Common
    • Labels:
      None

      Description

      Currently AMQShortString.equals will return true if it is passed an instance of CharSequence which contains the same character sequence as the AMQShortString, however this means that a.equals(b) != b.equals(a) if a is an AMQShortString and b is (for example) a String. This is an violation of the expected contract from equals.

        Attachments

          Activity

            People

            • Assignee:
              rgodfrey Robert Godfrey
              Reporter:
              rgodfrey Robert Godfrey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: