You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Nikita Amelchev <ns...@gmail.com> on 2017/07/21 09:53:45 UTC

Fix for enum marshalling

Hi, Igniters.
I fixed issue 5087 - Enum comparison fails after marshal-unmarshal with
BinaryMarshaller. The solution is check superclass on enum. I created new
public method isEnum(Class cls) for resolve enum mode in binary class
descriptor. Also I get class name through getDeclaringClass() for enum
type. My changes was merged to master.

-- 
Best wishes,
Amelchev Nikita

Re: Fix for enum marshalling

Posted by Vyacheslav Daradur <da...@gmail.com>.
Hi Nikita.

Thanks for the contribution!

If you are curious in BinaryMarshaler and want to continue improve it,
please, take a look to a task [1]

[1] https://issues.apache.org/jira/browse/IGNITE-3244


2017-07-21 12:53 GMT+03:00 Nikita Amelchev <ns...@gmail.com>:

> Hi, Igniters.
> I fixed issue 5087 - Enum comparison fails after marshal-unmarshal with
> BinaryMarshaller. The solution is check superclass on enum. I created new
> public method isEnum(Class cls) for resolve enum mode in binary class
> descriptor. Also I get class name through getDeclaringClass() for enum
> type. My changes was merged to master.
>
> --
> Best wishes,
> Amelchev Nikita
>



-- 
Best Regards, Vyacheslav D.