Oh!

Normally, BinaryObject should of course work with both boxed and unboxed
fields.

Note that BinaryObject has setField(name, val, type) - > you can pass
Integer.class or you may pass Integer.TYPE there to get different behaviour.

Unfortunately it's hard to say more just from the fragments of code that
you have provided.

Regards,
-- 
Ilya Kasnacheev


вт, 25 сент. 2018 г. в 21:56, smurphy <smur...@trustwave.com>:

> Thanks for the responses.
>
> Ilya - I did try your suggestion: removing the final modifier, deleting the
> constructor and only using getters and setters.
> I even went as far as to make the fields public.
> All these changes resulted in the an IllegalArgumentException.
>
> If it helps, I was able to write a JUnit that replicated the exception and
> fixed it along the lines of the following article:
>
> https://docs.oracle.com/javase/tutorial/reflect/member/fieldTrouble.html
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to