Hi

Can you maybe post some more details such as a bit of code of your enums.
As we could possible improve that code to deal with enums in a specific way.

On Mon, Mar 6, 2023 at 12:30 PM Svend Ole Nielsen <
svend-ole.niel...@addsecure.com> wrote:

> 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
> www.addsecure.com
> <http://www.addsecure.com/> <https://www.facebook.com/AddSecure/>
> <https://www.linkedin.com/company/addsecure/>
> <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.
>
>

-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to