Fix for enum marshalling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix for enum marshalling

Nikita Amelchev
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
Reply | Threaded
Open this post in threaded view
|

Re: Fix for enum marshalling

daradurvs
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 <[hidden email]>:

> 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.