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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Java Common
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: