You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2015/07/21 04:58:04 UTC
[jira] [Updated] (THRIFT-3183) TJSONProtocol#writeBinary Shouldn't
Assume ByteBuffer.array() is supported
[ https://issues.apache.org/jira/browse/THRIFT-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jake Farrell updated THRIFT-3183:
---------------------------------
Fix Version/s: (was: 0.9.3)
> 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
> 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)