Well spotted. Fell free to log a JIRA ticket.

On Fri, Jul 18, 2014 at 1:38 PM, yann_m <[email protected]> wrote:
> Hi all,
>
> 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. Am i wrong ?
>
> Regards.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/org-apache-camel-util-KeyValueHolder-equals-bug-tp5753995.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to