Alex Rudyy created QPID-7537:
--------------------------------

             Summary: Improve implementations of equal methods in various 
classes to be able to account for sub-classes
                 Key: QPID-7537
                 URL: https://issues.apache.org/jira/browse/QPID-7537
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker, Java Client, Java Common, Java Performance 
Tests
            Reporter: Alex Rudyy
             Fix For: qpid-java-6.2


The equals method of the following classes break symmetry if the passed in 
object is a subclass. Check whether this is acceptable. Otherwise use 
this.getClass() instead of instanceof
* BindingImpl
* QpidSslRMIServerSocketFactory
* HeadersBinding
* AMQPProtocolVersionWrapper
* UsernamePrincipal 
* GroupPrincipal
* Action
* Rule
* InetNetwork
* AMQBrokerDetails
* AMQDestination
* AMQQueue
* AMQTopic
* XidImpl 
* FieldTable
* ProtocolInitiation
* QpidRAConnectionRequestInfo
* QpidRAManagedConnectionFactory 
* QpidRAMessage 
* QpidResourceAdapter
* ListPropertyValue 
* NumericGeneratedPropertySupport
* RangePropertyValue



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to