Nick White created THRIFT-3183:
----------------------------------

             Summary: 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


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)

Reply via email to