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

AMQBrokerDetails equals() and hashCode() methods do not adhere to contract

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.15
    • JMS AMQP 0-x
    • None

    Description

      The AMQBrokerDetails object has an equals and a hashCode implementation that are not compatible. Equality uses case-insensitive comparisons and also compares SSL status, whereas the hashCode is calculated using the provided values and does not include SSL details. The contract for hashCode is given here:

      http://download.oracle.com/javase/6/docs/api/java/lang/Object.html#hashCode%28%29

      Attachments

        Activity

          People

            robbie Robbie Gemmell
            andrew.kennedy Andrew Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: