[
https://issues.apache.org/jira/browse/THRIFT-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick White updated THRIFT-3183:
-------------------------------
Attachment: THRIFT-3183.patch
> TJSONProtocol#writeBinary Shouldn't Assume ByteBuffer.array() is supported
> --------------------------------------------------------------------------
>
> Key: THRIFT-3183
> URL: https://issues.apache.org/jira/browse/THRIFT-3183
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Affects Versions: 0.9.2
> Reporter: Nick White
> Fix For: 0.9.3
>
> Attachments: THRIFT-3183.patch
>
>
> ByteBuffer#array() can throw UnsupportedOperationException according to it's
> contract, so the attached patch modifies TJSONProtocol#writeBinary so to
> avoid calling it (instead it reads from a (zero-copy)
> ByteBuffer#duplicate()).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)