Enum comparing does not work when toString is overridden

2023-03-06 Thread Svend Ole Nielsen
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 meth

Re: Enum comparing does not work when toString is overridden

2023-03-15 Thread Claus Ibsen
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 coup

Sv: Enum comparing does not work when toString is overridden

2023-03-22 Thread Svend Ole Nielsen
of this message. ____ Fra: Claus Ibsen Sendt: 15. marts 2023 12:33 Til: users@camel.apache.org Emne: Re: Enum comparing does not work when toString is overridden CAUTION: External email Hi Can you maybe post some more details such as a bit of code of your enu

Re: Enum comparing does not work when toString is overridden

2023-03-22 Thread Claus Ibsen
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