[
https://issues.apache.org/jira/browse/CAMEL-7611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067829#comment-14067829
]
ASF GitHub Bot commented on CAMEL-7611:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/camel/pull/223
> org.apache.camel.util.KeyValueHolder equals bug
> -----------------------------------------------
>
> Key: CAMEL-7611
> URL: https://issues.apache.org/jira/browse/CAMEL-7611
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.10.2, 2.12.4, 2.13.2
> Environment: AIX, Weblogic
> Reporter: Yann MOLLIER
> Assignee: Claus Ibsen
> Fix For: 2.12.5, 2.13.3, 2.14.0
>
>
> According to java.lang.Object javadoc
> (http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html), "equal
> objects must have equal hash codes".
> Current implementation of the "equals" and "hashCode" method of the
> org.apache.camel.util.KeyValueHolder does not seem to follow that rule:
> hashCode is calculated from the key and value attributes while the equals
> compares only the key attribute.
> Could generate unexpected behaviour in certain circumstances.
--
This message was sent by Atlassian JIRA
(v6.2#6252)