Hi

I have been scratching my head for a couple of days wondering why my simple 
comparison in a choice list in Camel has always gone wrong. I'm comparing 
"complex" enums that have name and then a more human eatable name. This human 
eatable name is being printed out in an overridden toString method.

Found out that if I don't override toString everything works fine. It looks 
like there is something fishy going on with the 'lookupConstantFieldValue' 
method in ObjectHelper class. It does some comparing on name and eventually 
returns toString. Would have thought it would make more sense to return name - 
seen as in a normal non-overridden tostring that returns name.

Have searched Jira but found nothing related to this so wondering if I have 
stumpled upon a bug of some sorts







Svend Ole Nielsen       Office +4596962640
Developer       
svend-ole.niel...@addsecure.com<mailto:svend-ole.niel...@addsecure.com>
        www.addsecure.com<http://www.addsecure.com/>
[cid:addsecure-logo_50e643a1-ceaa-48aa-817f-52769402fe0c.png]<http://www.addsecure.com/>
        [cid:fb_626b0b2c-0bba-4c8b-a645-72b180ce970e.png] 
<https://www.facebook.com/AddSecure/>   
[cid:li_2f98ce3b-2546-4c48-bcb2-9680df7d09ea.png] 
<https://www.linkedin.com/company/addsecure/>   
[cid:yt_8a8408e0-b9f1-4cca-9d75-77a496a95f00.png] 
<https://www.youtube.com/channel/UC9RMhgoc3z23vy93yBRAygA>
For a safer and smarter world
NOTE: This e-mail (including any attachments) is for the sole use of the 
intended recipient(s) and may contain information that  confidential and/or 
protected by legal privilege. Any unauthorized review, use, copy, disclosure or 
distribution of this e-mail is strictly prohibited. If you are not the intended 
recipient, please notify AddSecure immediately and destroy all copies of this 
e-mail. AddSecure does not accept any liability for breach of security, error 
or virus that may result from the trans­mission of this message.


Reply via email to