GitHub user rdblue opened a pull request:
https://github.com/apache/avro/pull/73
AVRO-1799: Fix GenericRecord#toString ByteBuffer bug.
Reading the ByteBuffer to return a string representaton modified the
buffer's position. The solution is to duplicate the buffer before
reading its content.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rdblue/avro AVRO-1799-tostring-bytebuffer-bug
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/73.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #73
----
commit 5883a1845305f7f2cab7847488e79839f32bdbea
Author: Ryan Blue <[email protected]>
Date: 2016-02-22T02:16:07Z
AVRO-1799: Fix GenericRecord#toString ByteBuffer bug.
Reading the ByteBuffer to return a string representaton modified the
buffer's position. The solution is to duplicate the buffer before
reading its content.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---