[ 
https://issues.apache.org/jira/browse/CAMEL-7611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-7611.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.14.0
                   2.13.3
                   2.12.5
         Assignee: Claus Ibsen

Thanks for the PR

> 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)

Reply via email to