Skip to content

JavaPropsMapper issue deserializing multiple byte array properties #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spifd opened this issue Feb 22, 2018 · 2 comments
Closed

JavaPropsMapper issue deserializing multiple byte array properties #74

spifd opened this issue Feb 22, 2018 · 2 comments
Milestone

Comments

@spifd
Copy link

spifd commented Feb 22, 2018

Hi,

I've found an issue: byte array values look not correctly set when having multiple byte[] in a data model. When it happens, the same byte array content is set to ALL of the bean byte[] (or ByteBuffer) properties. I even have a more complex use case where an object property is set with the deserialized value of another different object byte[] property.

Please see the simple test case attached.
Fabrice

MyBean.java.zip

@cowtowncoder
Copy link
Member

@spifd Thank you for reporting this. I'll have a look.

@cowtowncoder cowtowncoder changed the title JavaPropsMapper issue deserializing multiple byte arrays JavaPropsMapper issue deserializing multiple byte array properties Feb 24, 2018
@cowtowncoder cowtowncoder added this to the 2.9.5 milestone Feb 24, 2018
@cowtowncoder
Copy link
Member

Decoded binary value was not being cleared appropriately. Fixed now, for 2.9.5, thank you for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants