qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-4904) [Java] AMQShortString.equals should not return true if it is not being compared to another AMQShortString
Date Mon, 03 Jun 2013 15:49:20 GMT

    [ https://issues.apache.org/jira/browse/QPID-4904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673227#comment-13673227
] 

ASF subversion and git services commented on QPID-4904:
-------------------------------------------------------

Commit 1489040 from [~godfrer]
[ https://svn.apache.org/r1489040 ]

QPID-4904 : [Java] AMQShortString.equals should only return true if it is being compared to
another AMQShortString
                
> [Java] AMQShortString.equals should not return true if it is not being compared to another
AMQShortString
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-4904
>                 URL: https://issues.apache.org/jira/browse/QPID-4904
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Common
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message