You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2015/04/16 22:29:59 UTC

[jira] [Resolved] (THRIFT-1471) toString() does not print ByteBuffer values when nested in a List

     [ https://issues.apache.org/jira/browse/THRIFT-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1471.
---------------------------------
    Resolution: Duplicate

> toString() does not print ByteBuffer values when nested in a List
> -----------------------------------------------------------------
>
>                 Key: THRIFT-1471
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1471
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>            Reporter: Ben Podgursky
>
> When a ByteBuffer is directly a field of a struct, the struct's toString uses org.apache.thrift.TBaseHelper.toString to print the ByteBuffer's bytes.  However, if the struct instead has a List<ByteBuffer> (probably any other non-thrift Collection type, but haven't tested others), it instead uses ByteBuffer's default toString: [java.nio.HeapByteBuffer[pos=0 lim=16 cap=16]].  The toString on a collection should ideally print out the bytes instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)