Dear all,

Currently Java code of 'findByValue' method of Thrift enums returns a null
when a received number doesn't correspond to an existing value. This
coincides with a null set for an optional enum.
Thus, outside of a Thrift code we can't check whether an invalid value is
passed.
Can we somehow make Thrift enums throw an exception on 'default' case?

Best regards,
Przemysław Pawelec
Intern

---------------------------------

CodiLime Sp. z o.o. - Ltd. company with its registered office in Poland,
01-167 Warsaw, ul. Zawiszy 14/97. Registered by The District Court for the
Capital City of Warsaw, XII Commercial Department of the National Court
Register. Entered into National Court Register under No. KRS 0000388871.
Tax identification number (NIP) 5272657478. Statistical number (REGON)
142974628.

-----------------------------------------

The information in this email is confidential and may be legally
privileged, it may contain information that is confidential in CodiLime Sp.
z o.o. It is intended solely for the addressee. Any access to this email by
third parties is unauthorized. If you are not the intended recipient of
this message, any disclosure, copying, distribution or any action
undertaken or neglected in reliance thereon is prohibited and may result in
your liability for damages.

Reply via email to